The following macro should work and preserve your headers. You need to
insert the header where indicated
Sub InsertLandscapeSection()
Dim oHead1 As HeaderFooter
Dim oHead2 As HeaderFooter
Dim oHead3 As HeaderFooter
Dim sCurSection As String
Dim sHeadText As String
Dim sHead1Text As String
sHeadText = "This is the landscape header"
sCurSection = Selection.Information(wdActiveEndSectionNumber)
Set oHead1 = _
ActiveDocument.Sections(sCurSection).Headers(wdHeaderFooterPrimary)
oHead1.LinkToPrevious = False
sHead1Text = oHead1.Range
With Selection
.InsertBreak Type:=wdSectionBreakNextPage
.PageSetup.Orientation = wdOrientLandscape
Set oHead2 = _
ActiveDocument.Sections(sCurSection +
1).Headers(wdHeaderFooterPrimary)
oHead2.LinkToPrevious = False
oHead2.Range.Text = sHeadText
.InsertBreak Type:=wdSectionBreakNextPage
.PageSetup.Orientation = wdOrientPortrait
End With
Set oHead3 = _
ActiveDocument.Sections(sCurSection + 2).Headers(wdHeaderFooterPrimary)
oHead3.LinkToPrevious = False
oHead3.Range.Text = sHead1Text
oHead1.Range.Text = sHead1Text
End Sub
http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>