I’ve created a macro that when doing Control+P (or File+Print) will set a bookmark, go to the TOC and update it then go back to the newly create bookmark and have the print dialog box open. Right now, it will do everything except update the TOC. Is what I’m trying to accomplish doable? This is what I have so far:
Sub FilePrint()
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:=”Start”
End With
Selection.GoTo What:=wdGoToBookmark, Name:=”TOC”
Selection.Fields.Update
With ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.Fields.Update
Selection.GoTo What:=wdGoToBookmark, Name:=”Start”
With ActiveDocument.Bookmarks
End With
Dialogs(wdDialogFilePrint).Show
End Sub