atw: Re: DocVariables in Word [SEC=UNCLASSIFIED]
- From: "Elizabeth Fullerton" <Elizabeth_Fullerton@xxxxxxxxxxx>
- To: <austechwriter@xxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 14:45:43 +1100
Thanks guys
So far I have been able to crudely display all the variables in a
msgbox:
For Each myVar In ActiveDocument.Variables
varString = myVar.Name & " = " & myVar.Value
myString = myString & varString & vbCr
Next myVar
MsgBox myString
I will use the line Howard has just provided:
ActiveDocument.Variables("DocVar Name").Value = "some string"
to modify the ones we want, and then if I get a bit bored later I will
do something more sophisticated.
If I get around to it I'll share.
Regards
Elizabeth Fullerton
Business Solutions Architect
Infosys Australia
Tel: +61 3 9911 3355
Fax: +61 3 9911 3407
www.infosys.com <http://www.infosys.com/>
Powered by Intellect
Driven by values
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is not
liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Other related posts: