I have a macro which refreshes all fields in a document (the equivalent of doing an F9 on the fields). I'd like to fire this macro automatically when the user saves the document.
Under options I can select "update fields when document is printed", but that's not what I want. In the VBA editor I only seem to find events for the Document_Open()
event, not the Document_Save()
event.
Is it possible to get the macro to fire when the user saves the document?
Please note:
- This is Word 97. I know it is possible in later versions of Word
- I don't want to replace the standard Save button on the toolbar with a button to run my custom macro. Replacing the button on the toolbar applies to all documents and I only want it to affect this one document.
To understand why I need this, the document contains a "SaveDate" field and I'd like this field to update on the screen when the user clicks Save. So if you can suggest another way to achieve this, then that would be just as good.