Delete Pages in Publisher 2003

M

Mary Sauer

This solution was posted by eezzell.

I delete multiple pages using a macro
First, make a copy of your publisher document.
Then, in your copy, create a macro with a name like deletepages. For example
to delete pages 10 to 40 you would run this macro:

Sub deletepages()
Dim firstpage, lastpage As Long
firstpage = 10
lastpage = 40
For i = firstpage To lastpage
ThisDocument.Pages.Item(firstpage).Delete
Next
End Sub

The first time I tried this, I used the line
ThisDocument.Pages.Item(i).Delete
forgetting that after a page is deleted, the remaining pages are moved up.
 

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

Top