Imagine, for instance, that you've got a text file, and headings are marked up by having 3 empty paragraphs before them and an empty paragraph after. Word will find the first instance of the text and highlight it in gray. Type the text you want to replace it with in the Replace with: field. Type the text you want to find in the Find what: field. The Find and Replace dialog box will appear. Execute rg.Delete rg.InsertBreak Type:wdPageBreak rg. Alternatively, you can press Ctrl+H on your keyboard. How do I do this I have tried inserting Odd Page breaks before and after the Next Page section breaks but each time I delete breaks, no matter which ones, Word reverts to Nex Page breaks. I resolved using this VBA script: Sub ReplaceSectionBreaks () 'reliably replace section breaks with page breaks 'even if they're followed by tables Dim rg As Range Set rg ActiveDocument.Range With rg.Find. I now need to change a few of them to Odd Page section breaks. Text that has to be formatted in the second, you format them (and remove the tags).įind what: (something)(something else)(another string)Īnd then remove the tags and apply the formatting in a second replace: I have a document that I created with Next Page section breaks. In a find/replace, you can only change the formatting of the whole find-text so you would need to do two find-replaces to get the job done. I found a nice article about wildcards, and it has a ton of useful information, but what is relevant to your question is this:Ī nice trick if you want to apply formatting to a part (but not all) of the search text is to put in “tags ” in