How to detect a certain break in a document.

R

rVo

I'm trying to replace all breaks of the type wdSectionBreakOddPage by
wdSectionBreakContinuous but I have no idea how to do this. Normally I would
look for the ascw-codes they leave in the document and create a simple
find-replace-all to do the job, but for these breaks it doesn't work as they
all get code chrw(13)

Could anyone tell me how to replace these breaks easily?

Thanks in advance.

rVo
 
S

Shauna Kelly

Hi rVo

Don't think about the break; think about the section.

Try something like this (untested):

dim oSec as Word.Section

for each oSec in ActiveDocument.Sections
oSec.PageSetup.SectionStart = wdSectionContinuous
next oSec

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
H

Helmut Weber

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