#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Thanks to all. Tremendous how this works. It was a great help.
Mike |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
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 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete a page after Section Break Next Page | Aston | Word | 9 | 04-27-2022 07:38 AM |
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 |
Section Break (Next Page) replaces Section Break (Continuous) when deleted | Carlabasson | Word | 2 | 03-25-2013 10:13 PM |
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 |