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
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