![]() |
|
#8
|
||||
|
||||
|
You could rename the macro 'FileSave' (and make a copy that's named 'FileSaveAs' - plus adding the necessary code to deploy the 'Save As' dialogue) to intercept Word's FileSave & FileSaveAs events, but more recent Word versions seem to be deprecating those. However, since the Document_Open event achieves much the same result for any document upon opening, I'd have thought that would be sufficient - the only thing it won't automatically update is the filename when a file is first created or re-saved via Save As, but it will capture that too, the next time the document is opened.
Although Word has 'DocumentBeforeSave' and 'DocumentBeforeClose' application events you could use, programming those is rather more complicated than using the built-in Document_Open event. To see what's involved, check out: http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
locking word table cells while auto-updating fields
|
fingermouse | Word | 6 | 01-14-2015 06:22 AM |
| Create automatically updating fields in Word 2010 | tryer | Word | 8 | 01-08-2014 12:39 AM |
Word auto updating fields and changing numbers when saving to PDF
|
OAEC | Word | 1 | 12-03-2013 08:01 PM |
Word 2013 Fields not updating
|
awaywithpixie | Word | 1 | 09-10-2013 10:35 AM |
| Auto-updating fields in Word 2007? V.V | Ruby Soho | Word | 2 | 11-19-2009 04:35 PM |