Check whether a certain section break exists. Word 2007, VBA

A

andreas

Dear Experts:

I would like a macro to check the following on the current multipage
document:

Check whether ...
.... at the end of page 1 a section break exists (either section break
'new page' or section break 'even page').
If none of these type of section breaks exists on page 1 the macro is
to say so in a MsgBox and is to exit

If such a section break exists on page 1 the macro is to go on and
check whether ...
.... at the end of the penultimate page an 'even page' or a 'new page'
section break exists.
If neither of these section breaks exist on the penultimate page the
macro is to say so in a MsgBox and is to exit.

I have attached a sample for your convenience.

Thank you very much in advance for your professinal help.
 

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