Hi
I'm using the below code to select an unused page in my document and delete it. The problem is by doing this it also deletes the section break and therefore messes up the header / footer.
Is there a way to delete the page without deleting the page break or possibly selection all on the page except page break and then delete?
Thanks!
ActiveDocument.Bookmarks("\page").Range.Delete
It's either or:
After a page break there's always a page (otherwise it wouldn't be a pagebreak: every frontier has 2 sides).
If you want to delete the empty page you should use a section endmarker before the pagebreak.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks