Change Page Section Type

D

Debra Ann

I have a macro that deletes the information in the last section of the
document, backspaces, and deletes the section break. Unfortunately, the
previous section break is a continuous section break and the one I am
deleting is a new page section break. As we all know, the section break I
delete changes the previous one to a new page section break which I do not
want.

Is there a way to change the type of section break from new page to
continuous before I delete it. If not, do you have a suggestion on how I can
run the macro to make this work?

Thanks,
 
D

Doug Robbins - Word MVP

ActiveDocument.Sections(ActiveDocument.Sections.Count).PageSetup.SectionStart
= wdSectionContinuous


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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