I am trying to make a macro for word. I have many word docs with 2 pages or more and they have same headers, footers I am trying to make a macro which will add an additional blank page to the doc but should not carry any header/footer and should not affect the previous pages. So a new blank page with basically nothing.
Selection.EndKey Unit:=wdStory
Selection.InsertBreak Type:=wdSectionBreakNextPage
Selection.InsertNewPage
Selection.Sections(1).Headers(wdHeaderFooterPrimary).LinkToPrevious = False
Selection.Sections(1).Headers(wdHeaderFooterPrimary).Range.Delete
Selection.Sections(1).Footers(wdHeaderFooterPrimary).LinkToPrevious = False
Selection.Sections(1).Footers(wdHeaderFooterPrimary).Range.Delete
So far this macro gives me an additional page with header/footer followed by a blank page. Any thoughts/ideas?