Using Word VBA to Update all Field Codes in Word Document
Here is a simple macro that will update all the fields in a Word document
Sub Update_Field()
ActiveWindow.ActivePane.View.Type = wdPrintView
Application.ScreenUpdating = True
Selection.WholeStory
ActiveDocument.Fields.Update
End Sub
Monday, March 31, 2008
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.
This works fine for normal document fields, but it doesn't update fields in headers/footers.
ReplyDeleteLook at this... http://msdn.microsoft.com/en-us/library/office/ff196072.aspx
ReplyDelete