DavG63
07-31-2014, 12:25 PM
Hi
Please help me I think I'm losing my mind!
I have a DocVariable in my word document which, only shows a value when the document is referring to a Company, i.e. if referring to an individual or a partnership it is not used.
I have tried every combination I can come up with to make the field report a blank space in the event of the inevitable Error! No document variable supplied. I managed to get it to do it when I'm loading a data file for an individual, but the next time I go to do one for a Company, and TextBox1 into which I type the Company Number has been completed on the Userform, it still reports a blank space on the document rather than importing the value of Textbox1.
My code for the DocVariable is
IF DocVariable Var3 = "Error! No document variable supplied" "" DocVariable Var3
What am I doing wrong? Please tell me!
Please help me I think I'm losing my mind!
I have a DocVariable in my word document which, only shows a value when the document is referring to a Company, i.e. if referring to an individual or a partnership it is not used.
I have tried every combination I can come up with to make the field report a blank space in the event of the inevitable Error! No document variable supplied. I managed to get it to do it when I'm loading a data file for an individual, but the next time I go to do one for a Company, and TextBox1 into which I type the Company Number has been completed on the Userform, it still reports a blank space on the document rather than importing the value of Textbox1.
My code for the DocVariable is
IF DocVariable Var3 = "Error! No document variable supplied" "" DocVariable Var3
What am I doing wrong? Please tell me!