Update fields automatically upon opening doc

  • Thread starter Thread starter Herschlag
  • Start date Start date
H

Herschlag

Is there a way to update fields automatically
(filename/path) without having to print the file. I also
don't want to do a "select all" and hit f9 to update. I
thought there was a way to run a macro as soon as you
would open a file that would update fields.
 
Herschlag said:
Is there a way to update fields automatically
(filename/path) without having to print the file. I also
don't want to do a "select all" and hit f9 to update. I
thought there was a way to run a macro as soon as you
would open a file that would update fields.

Sub AutoOpen()
Options.UpdateFieldsAtPrint = True
Application.ScreenUpdating = False
PrintPreview = True
PrintPreview = False
ActiveDocument.ActiveWindow.View.Type = wdPrintView
Application.ScreenUpdating = True
End Sub
 
My thanks to Jay for this little macro - it's cured a
minor headache that I've had for ages which is "Select
All +F9" doesn't update fields in the footer whereas your
macro does - three cheers from me at least.
 
Back
Top