How to delete a blank page between the pages.

  • Thread starter Thread starter Rakesh K Shrivastava
  • Start date Start date
R

Rakesh K Shrivastava

I am having an MS Word 2000 document. This document is of 8 pages and having
one blank page at page number 2. Is there any way to delete the specified
page number using VBA.

Looking forward for your assistance.
 
In general, you delete a page by deleting its contents, but if the blank
page is truly blank, it may be generated by an Odd Page section break. We'd
have to know how the blank page was created to know how to delete it.

--
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.
 
Dear Barnhill,

Thanks for your reply.

The blank page is created by the section break. Is there any way to identify
the first section break and deleting it using VBA?
 
But what type of Section Break is it? Read in Help about Section breaks
and you'll find that there are various types. If an even or odd page
break, blank pages may be created.

Yes, you can write VBA code to do this. The code, to work properly,
will have to figure out why the blank page exists and then delete
accordingly.

Hope this is useful to you. Let us know.

rms
 
Back
Top