S
Starbird
I have a template that I have used bookmarks in which work fine, but because
there is a possibility of the data needing to be changed (via userform) after
the original document is created, I am trying to use a document variable
instead.
The following works fine --
ActiveDocument.Bookmarks("MyTest").Range.Text = oForm.txtMyTest.Text
However when I attempt the following, (I set a docvariable named MyTest in
the location where the bookmark previously existed) it fails to populate--
ActiveDocument.Variables("MyTest").Value = oForm.txtMyTest.Text
What am I doing wrong?
Thanks in advance!
SRD
there is a possibility of the data needing to be changed (via userform) after
the original document is created, I am trying to use a document variable
instead.
The following works fine --
ActiveDocument.Bookmarks("MyTest").Range.Text = oForm.txtMyTest.Text
However when I attempt the following, (I set a docvariable named MyTest in
the location where the bookmark previously existed) it fails to populate--
ActiveDocument.Variables("MyTest").Value = oForm.txtMyTest.Text
What am I doing wrong?
Thanks in advance!
SRD