R
Raj
In a document, when i try insert a new section at the beging of the document through the following macros. All the header/footers of even page is disappearing
But I want this newly inserted section alone to have no heaer/footer. while my old section should retain its header/footer as it is
here is what i am trying, but this code deletes all the header/foote
Selection.InsertBreak Type:=wdPageBrea
Selection.InsertBreak Type:=wdSectionBreakNextPag
WordBasic.LineUp
WordBasic.Style "PartNo
WordBasic.Insert "New Part
WordBasic.NormalStyl
WordBasic.nextpag
WordBasic.nextpag
WordBasic.nextpag
With Selection.Sections(1).Headers(wdHeaderFooterEvenPages
.LinkToPrevious = Fals
End Wit
WordBasic.prevpag
WordBasic.prevpag
With Selection.Sections(1).Headers(wdHeaderFooterPrimary
.LinkToPrevious = Fals
.Range.Delet
End Wit
WordBasic.CloseViewHeaderFoote
Please help...
But I want this newly inserted section alone to have no heaer/footer. while my old section should retain its header/footer as it is
here is what i am trying, but this code deletes all the header/foote
Selection.InsertBreak Type:=wdPageBrea
Selection.InsertBreak Type:=wdSectionBreakNextPag
WordBasic.LineUp
WordBasic.Style "PartNo
WordBasic.Insert "New Part
WordBasic.NormalStyl
WordBasic.nextpag
WordBasic.nextpag
WordBasic.nextpag
With Selection.Sections(1).Headers(wdHeaderFooterEvenPages
.LinkToPrevious = Fals
End Wit
WordBasic.prevpag
WordBasic.prevpag
With Selection.Sections(1).Headers(wdHeaderFooterPrimary
.LinkToPrevious = Fals
.Range.Delet
End Wit
WordBasic.CloseViewHeaderFoote
Please help...