Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Robb @ FLW
 
Posts: n/a
Default How do I get a MACRO to delete certain pages

How do I get a macro to delete certain pages after the document is saved
--
Robb
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
John McGhie [MVP - Word and Word Macintosh]
 
Posts: n/a
Default How do I get a MACRO to delete certain pages

Hi Rob:

You can't actually do this, because a Word document file does not contain
any "pages" to be deleted.

"Pages" are "invented" by Word when the document is sent to the screen or
printer, they do not exist in the file to be found or deleted.

However, you can create various work-arounds. One of the simplest is to
bookmark the various pages: "MarkPage1", "MarkPage2", "MarkPage3" etc.

Then it's simply to make a macro to select and delete the content of, for
example, "MarkPage2". Note that as soon as you do, Page 3 will become page
2 :-)

Perhaps if you tell us what you are trying to accomplish we can be of more
help?

Cheers


On 9/2/06 9:04 AM, in article
, "Robb @ FLW"
wrote:

How do I get a macro to delete certain pages after the document is saved


--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
Posts: n/a
Default How do I get a MACRO to delete certain pages

Rob,

For more on what John explained already, see:
http://daiya.mvps.org/wordpages.htm

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete phantom pages/sections in my Word 2003 document? cyndiwise notsowise Microsoft Word Help 2 January 6th 06 08:51 PM
Macro doesn't work Anna Microsoft Word Help 9 October 17th 05 10:25 PM
How to delete additional pages MS automatically adds Beth Microsoft Word Help 4 July 13th 05 12:45 AM
How to delete additional pages MS automatically adds Beth Mailmerge 3 July 5th 05 03:08 AM
How do I delete one of the pages in Word but keep the other? mickeonJ Microsoft Word Help 1 March 17th 05 08:28 PM


All times are GMT +1. The time now is 09:03 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"