rrhandle8
asked on
Word VBA Delete pages with only a "Page Break"
I generate multiple page document, and must enter Page Breaks at certain points. Sometimes the end result is a document with some blank pages that contain only a Page Break. I need to delete those pages.
Is there a way to read the top line of each page so I can test if it is a page break? Or can I grab the contents of a page, and if the contents are only 2 characters long (the is the number of characters for a page page), then delete the Page Break?
Open to suggestions.
Is there a way to read the top line of each page so I can test if it is a page break? Or can I grab the contents of a page, and if the contents are only 2 characters long (the is the number of characters for a page page), then delete the Page Break?
Open to suggestions.
ASKER
See attached
Table1.docx
Table1.docx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Worked great.
Again, glad I could help.
»bp