

Set rgePages = rgePages.GoTo(What:=wdGoToBookmark, Name:="\page") To avoid this you can set a continuous section break. This is because the content before the section break will take up the formatting of the content after the section break. Now in case, your section break is in the middle of the document, deleting it can create formatting issues. IPage = InputBox(Message, Title, Default) Place your cursor before the section break and hit delete. Press ‘Delete.’ Ensure to press ‘Delete,’ not the ‘Backspace’ key on your keyboard, as it will not achieve the same result.

Then you will see b in Find what text box. Then click Special and choose Section Break on its menu. Next put cursor inside Find what text box. First of all, press Ctrl+ H to open Find and Replace box in Word. Alternatively, you can double-click the section break to select it. Method 1: Find All Section Breaks in the Document. Position the cursor right before the section break in question. Message = "Enter the page number to delete"ĭefault = Selection.Information(wdActiveEndPageNumber) Go to the section break you want to remove. I saw this macro in one of the forums but it still doesn't recognize the last page for some reason: I want the user to be able to choose what size they want to use and just delete the unwanted pages. The above steps can be applied if you have just a few section. Your heading retains its style and any information used by cross. Optional: Clear the Page break before check box if you really don’t want this section to start on a new page. Alternatively, place your cursor just before the section break and press Delete. In the Paragraph settings dialog box, go to the Line and Page Breaks tab and select the Page break before check box.

Once you do, select the section break by dragging your cursor from the left edge all the way to the right edge and press the Delete key. Hi, I'm creating a work instruction template to be used company wide. To manually remove a section break, scroll until you find it.
