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 / June 2004

Tip: Looking for answers? Try searching our database.

automatically update field codes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simone - 03 Jun 2004 03:13 GMT
I have inserted a SaveDate field code in a template. I
would like the field to update automaticcally when the
document is saved without having to F9 it or wait for
update when printing. Is there a formula of some kind that
will automatically update the field whenever the document
is saved?
Doug Robbins - Word MVP - 03 Jun 2004 06:55 GMT
Hi Simone,

The vba command

Assuming that the field is in the footer of the document, the easiest way to
get the fields to update is to preview the document.   You can use the
following vba commands to do that

ActiveDocument.PrintPreview
ActiveDocument.ClosePrintPreview

If you were to create a macro with the name

FileSaveAs that contains the following code

Dialogs(wdDialogFileSaveAs).Show
ActiveDocument.PrintPreview
ActiveDocument.ClosePrintPreview

Then it would run whenever the File>Save As command is selected and should
do what you want.

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

> I have inserted a SaveDate field code in a template. I
> would like the field to update automaticcally when the
> document is saved without having to F9 it or wait for
> update when printing. Is there a formula of some kind that
> will automatically update the field whenever the document
> is saved?
 
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.