Any further edits to the document will reset this, giving the save prompt on close.įor Each aStory In ActiveDocument.StoryRanges So I added a line to immediately mark the document as unchanged after updating the fields. Most users will always click on this, which would result in the LASTSAVEDBY and SAVEDATE values showing when the doc was last read, and who by. The vbscript from Microsoft is good, but results in a document that always thinks it has been edited, so always prompts to save when closing. For footers this is absolutely fine.Īnd since this is a Macro you definitely need to save as dotm.įor anyone who needs to update fields on save, there is a discussion at VBA Express forums, or you could just adapt the macro from Microsoft's document. Just remember that you won't see the updates applied until you open the document again. This actually makes more sense for a number of fields, so as long as you use LASTSAVEDBY and SAVEDATE these will make sense. Handily they provide a Macro which updates the fields when you open the file, rather than save. So reading Microsoft's KnowledegeBase article on this gives the infuriating answer that this is by design, so you need to write a macro to do this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |