Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2014, 07:22 AM
mbesspiata mbesspiata is offline Page Break based on specific work Windows 7 32bit Page Break based on specific work Office 2007
Advanced Beginner
Page Break based on specific work
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default Page Break based on specific work

Is there a way to have a page break inserted when a certain word is detected on a page? I have a report with many pages of different sizes but each new page begins with a title beginning with the word OFFICIAL.


Is there a macro or something to have word create a page break when it finds this word?

Mike
Reply With Quote
  #2  
Old 01-21-2014, 12:31 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Page Break based on specific work Windows 7 64bit Page Break based on specific work Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

You can use Find and Replace. Press Ctrl+H to display the dialog box.

"Find what": OFFICIAL

"Replace with": ^m^&

Click the Replace All button.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 01-22-2014, 12:14 AM
eNGiNe eNGiNe is offline Page Break based on specific work Windows 7 32bit Page Break based on specific work Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Quote:
each new page begins with a title …
So, you could define and use a heading style that includes page break before.
Reply With Quote
  #4  
Old 01-22-2014, 05:39 AM
mbesspiata mbesspiata is offline Page Break based on specific work Windows 7 32bit Page Break based on specific work Office 2007
Advanced Beginner
Page Break based on specific work
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default

Thanks to all. Tremendous how this works. It was a great help.

Mike
Reply With Quote
  #5  
Old 01-22-2014, 06:28 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Page Break based on specific work Windows 7 64bit Page Break based on specific work Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Using a heading style would be even easier, of course, assuming that it would be appropriate for the document.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #6  
Old 01-22-2014, 11:36 AM
mbesspiata mbesspiata is offline Page Break based on specific work Windows 7 32bit Page Break based on specific work Office 2007
Advanced Beginner
Page Break based on specific work
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default

One more thing on this that I notice. I added the find and replace sequence to the macro to add the page break but I get a blank page between every page. Is there a way to remove the blank pages?
Mike
Reply With Quote
  #7  
Old 01-22-2014, 12:40 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Page Break based on specific work Windows 7 64bit Page Break based on specific work Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Display nonprinting marks, for example by clicking the ¶ button on the Home tab, and see if there are multiple page breaks in the document.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Break based on specific work Delete a page after Section Break Next Page Aston Word 9 04-27-2022 07:38 AM
Page Break based on specific work First section will not 'insert' blank page even though sectn 2 is 'odd' page break Pat_Hodgson Word 6 12-01-2013 04:22 PM
Page Break based on specific work Section Break (Next Page) replaces Section Break (Continuous) when deleted Carlabasson Word 2 03-25-2013 10:13 PM
Page Break based on specific work Mail Merge to print specific record based on mergefield criterias nicnad Mail Merge 1 02-22-2012 01:53 AM
How to count year lapse (rounded off) based on specific date KIM SOLIS Excel 1 11-01-2011 10:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:14 AM.


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