how do I delete a pages from a multi-page document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to be able to easily delet a page or pages from a multi-page
document. This would become a repetative process.
 
Word is not a page layout program. A 'page' is made up of various items and
any attempt to delete 'pages' will be complicated by issues such as section
breaks and header/footers etc. However the following macro *may* do what you
want - just don't be too surprised if it doesn't behave as you expect:

Sub PageDelete()
On Error Resume Next
ActiveDocument.Bookmarks("\page").Range.Delete
End Sub

http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks for the info. I will do some research.

Graham Mayor said:
Word is not a page layout program. A 'page' is made up of various items and
any attempt to delete 'pages' will be complicated by issues such as section
breaks and header/footers etc. However the following macro *may* do what you
want - just don't be too surprised if it doesn't behave as you expect:

Sub PageDelete()
On Error Resume Next
ActiveDocument.Bookmarks("\page").Range.Delete
End Sub

http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top