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 / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Update field macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gdf1903@hotmail.com - 20 Jul 2007 11:35 GMT
Hi,

I have found the following macro code that will go through a document
and update all the fields when run.

I woudld like this to run automatically when a document is saved or
closed.

Can anyone help me out with this?

Thanks,

Gary.
Jay Freedman - 20 Jul 2007 14:30 GMT
You need to call your macro from either an "Auto" macro or an event handler.
It can be difficult to anticipate and catch all the possible ways a document
could be saved or closed, so you have some studying to do.

See http://www.word.mvps.org/FAQs/MacrosVBA/PseudoBeforeClose.htm,
http://www.word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm and
http://www.word.mvps.org/FAQs/MacrosVBA/ApplicationEvents.htm.

Signature

Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> Hi,
>
[quoted text clipped - 9 lines]
>
> Gary.
 
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.