Word 2002, Opening the primary header to delete a bookmark.
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.Bookmarks("Header1").Select
I was able to find the header and open it and delete what I weant. But, how do I close the header? there's this pane that opens at the bottom of the screen, showing the header. i can't close it. it's not the usual dotted line header division on the screen, it looks like a new window pane.
Tried this to close it and change the View but it's not working:
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
ActiveDocument.ActiveWindow.View = wdPrintView
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.Bookmarks("Header1").Select
I was able to find the header and open it and delete what I weant. But, how do I close the header? there's this pane that opens at the bottom of the screen, showing the header. i can't close it. it's not the usual dotted line header division on the screen, it looks like a new window pane.
Tried this to close it and change the View but it's not working:
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
ActiveDocument.ActiveWindow.View = wdPrintView