Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2015, 09:06 PM
gmayor's Avatar
gmayor gmayor is offline Insert manual page breaks Windows 7 64bit Insert manual page breaks Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You could run the replacement from a macro via a button on the ribbon, which you may consider more elegant? See http://www.gmayor.com/installing_macro.htm
Code:
Sub AddPageBreaks()
Const strFind As String = "---Break---"
Dim oRng As Range
    Set oRng = ActiveDocument.Range
    With oRng.Find
        Do While .Execute(strFind)
            oRng.Text = ""
            oRng.InsertBreak wdPageBreak
            oRng.Collapse 0
        Loop
    End With
lbl_Exit:
    Set oRng = Nothing
    Exit Sub
End Sub

__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert manual page breaks Hidden page breaks and section breaks jrasicmark Word 3 06-02-2014 11:28 PM
Insert manual page breaks Remove Manual Line Breaks not working dvdb Word 2 03-28-2014 12:51 PM
Insert manual page breaks Insert section breaks in a protected document MS help Word 2 03-09-2014 05:27 PM
Insert manual page breaks Page breaks and page numbering sfteam Word 3 06-06-2013 11:56 PM
Deleted Section Breaks Changes Page Breaks Brantnshellie Word 0 02-01-2009 09:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft