Deleting a full page with text in it

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

Guest

I am working with a merged document with several thousand pages. I want to
be able to have my cursor sit at the top of a page and do a keyboard command
that will delete the entire page I'm working on. Any suggestions would be
helpful.
 
David,

Assign a keyboard shortcut to a macro something like:

Sub DeletePageOfText()
Selection.Bookmarks("\Page").Select
Selection.Delete
End Sub
 
Or even simpler

ActiveDocument.Bookmarks("\page").Range.Delete

However while Greg's solution may work for you, be aware that Word is not a
page layout application. Pages are transient entities made up of several
components. If you document is complex, simply removing the current 'page'
may screw up the rest of the document, so remember that CTRL+Z undo will
correct any screw-ups. I would however recommend working on a copy of the
document.

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Also, if this is a letter-type merge, then each page is a section;
especially if there's any chance than any of the "letters" runs to more than
one page, it would be better to use a macro that deletes the current
section.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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