DavG63
05-08-2016, 12:25 PM
This is a general question about updating DocVariables in a Word document based upon input into various comboboxes in VBA.
My document has a final combobox "OK", which executes the update of all DocVariables based on the values in the Userform. My question is, if for example, I have Userform1, Userform2 and Userform3, all with ComboBoxes 1, 2 & 3 how do I tell the macro which Userform to draw the DocVariable value from? For instance, I'd fill in Userform 1, click the "next" commandbutton and it would "hide.me" Userform1, and call up Userform2, the same with "next" on Userform2, which would call up Userform3.
It's probably either really simple to achieve, or totally impossible. I'm just not sure which.
Would anyone have any suggestions?
Thanks
Dav
My document has a final combobox "OK", which executes the update of all DocVariables based on the values in the Userform. My question is, if for example, I have Userform1, Userform2 and Userform3, all with ComboBoxes 1, 2 & 3 how do I tell the macro which Userform to draw the DocVariable value from? For instance, I'd fill in Userform 1, click the "next" commandbutton and it would "hide.me" Userform1, and call up Userform2, the same with "next" on Userform2, which would call up Userform3.
It's probably either really simple to achieve, or totally impossible. I'm just not sure which.
Would anyone have any suggestions?
Thanks
Dav