How to delete a blank page between the pages.

  • Thread starter Rakesh K Shrivastava
  • 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.
 
S

Suzanne S. Barnhill

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.
 
R

Rakesh K Shrivastava

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?
 
R

Rob Schneider

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
 

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