title: Run macro automatically OnSave in Word
body: <p>I have a macro which refreshes all fields in a document (the equivalent of doing an <kbd>F9</kbd> on the fields). I'd like to fire this macro automatically when the user saves the document.</p>
  
  <p>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 <code>Document_Open()</code> event, not the <code>Document_Save()</code> event.</p>
  
  <p>Is it possible to get the macro to fire when the user saves the document?</p>
  
  <p>Please note:</p>
  
  <ol>
  <li>This is Word 97. I know it is
  possible in later versions of Word</li>
  <li>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.</li>
  </ol>
  
  <p>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.</p>