J
JohnTheTemp
I recorded a macro to create a blank page at the end of the doc then clear
out the header and footer of that last page.
However, when I run it, it clears out the header and footer of page 1.
Here's the part that clears the Header:
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.LinkToPrevious = False
Selection.EndKey Unit:=wdStory, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
When I stepped thru it, the focus was in the last page header until the
EndKey statement when it suddenly changed to Page 1 header. Que pasa?
out the header and footer of that last page.
However, when I run it, it clears out the header and footer of page 1.
Here's the part that clears the Header:
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.LinkToPrevious = False
Selection.EndKey Unit:=wdStory, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
When I stepped thru it, the focus was in the last page header until the
EndKey statement when it suddenly changed to Page 1 header. Que pasa?