

When deleting a section break, you will always lose some section-level formatting, because that formatting is stored in the section break. Now, I don't want all pages above to become Landscape pages, nor all pages below to become Portrait pages, I wanna keep the formatting AS IT IS, but without the disgusting section break, replace it with a page break. Replace it by a simple Page break.Įxample: I have a Portrait page ending with a section break (I didn't put it there, of course, it came after OCR and export to Word)., followed by a Landscape page. Nothing of the above does what I want to achieve: REMOVE THE NASTY SECTION BREAK WITHOUT changing ANYTHING else. That's a horrible description, but hopefully it will help someone. "Page Setup" and it looks like a bracket with an arrow pointing down and to the right (not a bracket on the keyboard, but the kind you use for construction). You have to click on the tiny button on the lower right side of the section, it's to the right of the words On the Page Layout tab in the ribbon, there's a section called Page Setup. This worked for me once I found the Page Setup. You can then safely delete the section break as per: This will copy the formatting from the area above the section break, to the area below the section break. Now, click just after the section break and press F4. Then click onĮach of the three tabs (don't change any settings) then click OK. To do so, select an area just above the section break, then click File > Page Setup (or File->Print->Page Setup in Word 2010). Last.DeleteĪctually, you CAN do what the OP is asking. FormattedText = Sctn1.Headers(oHdFt.Index).Range.FormattedText OHdFt.LinkToPrevious = Sctn1.Headers(oHdFt.Index).LinkToPrevious FormattedText = Sctn1.Footers(oHdFt.Index).Range.FormattedTextĭo While. OHdFt.LinkToPrevious = Sctn1.Footers(oHdFt.Index).LinkToPrevious DifferentFirstPageHeaderFooter = lDiffFirstHdFt


OddAndEvenPagesHeaderFooter = lOddEvenHdFt MsgBox "Selection does not span a Section break", vbExclamation Page orientation, text columns, headers & footers) are addressed.ĭim sPageHght As Single, sPageWdth As Singleĭim sHeaderDist As Single, sFooterDist As Singleĭim sTMargin As Single, sBMargin As Singleĭim sLMargin As Single, sRMargin As Singleĭim sGutter As Single, sGutterPos As Singleĭim lPaperSize As Long, lGutterStyle As Longĭim lMirrorMargins As Long, lVerticalAlignment As Longĭim lOddEvenHdFt As Long, lDiffFirstHdFt As Longĭim bTwoPagesOnOne As Boolean, bBkFldPrnt As Booleanĭim bBkFldPrnShts As Boolean, bBkFldRevPrnt As Booleanĭim bOrientation As Boolean, oHdFt As HeaderFooter The following macro works the other way, across multiple (selected) Section breaks. As has been discussed, deleting a Section break causes the Section preceding the break to assume the page layout of the following Section.
