Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2004

Tip: Looking for answers? Try searching our database.

Help on how to populate fields on a Word document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ImOkYoureNot - 04 Aug 2004 22:23 GMT
I have the following in my document (Word 2002 on Windows XP)

I would like to have a document and place some fields on it. A macro
will then execute and populate the fields with information. There will
be no database access so I will not use mailmerge.

I tried adding {DOCVARIABLE CoName } but it doesnt seem to show the
values when I toggle.

E.g.

ActiveDocument.Variables("CoName").value = "My Company Name"

What am I doing wrong?

Thanks
Doug Robbins - 05 Aug 2004 00:23 GMT
In addition to toggling off the display of the field codes, it will be
necessary to update the fields to show the information that is stored in the
variable.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>I have the following in my document (Word 2002 on Windows XP)
>
[quoted text clipped - 12 lines]
>
> Thanks
ImOkYoureNot - 05 Aug 2004 15:23 GMT
> In addition to toggling off the display of the field codes, it will be
> necessary to update the fields to show the information that is stored in the
> variable.

What do you mean by "Update the fields". I run the macro. Then switch
to the document and see nothing. Do I have to do something else? (I do
toggle  the field codes)

Thanks
Doug Robbins - 06 Aug 2004 01:36 GMT
Ctrl+a then F9

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>> In addition to toggling off the display of the field codes, it will be
>> necessary to update the fields to show the information that is stored in
[quoted text clipped - 6 lines]
>
> Thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.