Replace character with page break

In MS Word, I need a line to replace a template ( $$$newpage ) with a page break. Is this possible with a normal page search? Or do I need to do this programmatically?

+4
source share
2 answers

go to find and replace and enter your find symbol and replace it with ^m
You can read about it here.

+7
source

I had the same problem, but I need to replace the Break section "^ b" with the page break "^ m". Find and replaxce does not work for me. I decided to use 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 .Text = "^b" .Wrap = wdFindStop While .Execute rg.Delete rg.InsertBreak Type:=wdPageBreak rg.Collapse wdCollapseEnd Wend End With End Sub 

try changing "^ b" to your "$$$ newpage" template, it should work for you too.

+1
source

All Articles