section break

W

William

Hi,

in vba for word 2003, is there anyway to check if there is any section break
on the very last line of the doc?

thank you,

will


--
 
H

Helmut Weber

Hi William,

to me it seems, a section break can
never be on the very last line.

You may want to know, whether a section break
precedes the end-of-doc mark.

Unfortunately, there are 5 kinds of section breaks:

'wdSectionContinuous ' 0
'wdSectionNewColumn ' 1
'wdSectionNewPage ' 2
'wdSectionEvenPage ' 3
'wdSectionOddPage '4

See: http://tinyurl.com/dh54n

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
E

Edward Thrashcort

Searching for a section break can be done by using "^b" in the search
string.

I suggest you move to the end of the story and search backwards
If found, check the character position of the selection


...oh...and first, create a test document with a section break in the
position at which you want to detect it! That might tell you something :)

Eddie
 
E

Edward Thrashcort

Searching for a section break can be done by using "^b"

....and that's "^s" is some Spanish versions of Word, just in case you are
developing an International product.

Eddie
 

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