Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing HeaderFooters with VBA

Status
Not open for further replies.

IanDB

Technical User
Apr 7, 2001
1
NZ
example
Document with 5 sections
Different headers added thus:

ActiveDocument.Sections(1).Headers (wdHeaderFooterPrimary).LinkToPrevious = False
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).PageNumbers.Add.Alignment = wdAlignPageNumberCenter


etc thru all sections

Now need to remove all headers from section 3 only.
(There's no ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).PageNumbers.delete

Any help appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top