How to link userform to another word document
Hello
I have created a userform which will be used by various people. The userform contains fields which the user will fill in to create DocVariables which are contained in the word document behind the form. This all works fine.
However, I want the userform to populate various letters. The user will click on a command button which will find and open various letter templates which are populated with DocVariable fields.
The problem is, when the userform opens these letters the docvariables are not populating and I get the 'Error! No document variable supplied.' message.
I somehow need to get the letter that the userform opens to look at the userform variables and populate the active links with those variables, but try as I might I have no been able to figure out how to do it.
Any help would be much appreciated.
Thanks.
|