C
christophercbrewster via OfficeKB.com
[This supersedes my earlier posting about a powerpoint tag.]
When I do Insert > Field in Word, and insert a DOCVARIABLE with the name of
the variable, the resulting field looks like this:
{DOCVARIABLE "VarName" \*MERGEFORMAT}
I can find one of these using this:
Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:=
"DOCVARIABLE"
The above statement leaves the cursor at the field's location, but I don't
know how to use the variable. I need to read the name of the doc variable, do
something wtih it, and show the value in my text. Is this possible? Any other
way to do this?
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1
When I do Insert > Field in Word, and insert a DOCVARIABLE with the name of
the variable, the resulting field looks like this:
{DOCVARIABLE "VarName" \*MERGEFORMAT}
I can find one of these using this:
Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:=
"DOCVARIABLE"
The above statement leaves the cursor at the field's location, but I don't
know how to use the variable. I need to read the name of the doc variable, do
something wtih it, and show the value in my text. Is this possible? Any other
way to do this?
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1