Article ID: 181785
Article Last Modified on 11/23/2006
Sub AutoOpen()
For Each aStory In ActiveDocument.StoryRanges
aStory.Fields.Update
Next aStory
End Sub
To run the macro when you create a new document, type the following
code:
Sub AutoNew()
For Each aStory In ActiveDocument.StoryRanges
aStory.Fields.Update
Next aStory
End Sub
173707 OFF97: How to Run Sample Code from Knowledge Base Articles
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon
Keywords: kbdtacode kbhowto kbprogramming KB181785