Hey guys, I'm trying to pass a variable from Word to Excel. Basically I have a Word document with a plain text content control in it. I'll have users populate this field. I know how to create a reference to that content contol in Word VBA that'll tell me what's in that content control
(eg.
).
What I can't figure out is how to pass the value of "MyWordVar" to a variable in Excel.
Would anyone have any thoughts on how to do that?
It would be much appreciated!
Thanks.
(eg.
Code:
MyWordVar = ActiveDocument.ContentControls(1).Range.Text
What I can't figure out is how to pass the value of "MyWordVar" to a variable in Excel.
Would anyone have any thoughts on how to do that?
It would be much appreciated!
Thanks.