Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

section break

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
William - 12 Oct 2005 16:40 GMT
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

Signature

 

Helmut Weber - 12 Oct 2005 17:09 GMT
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

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

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

Edward Thrashcort - 12 Oct 2005 18:20 GMT
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
Edward Thrashcort - 12 Oct 2005 18:29 GMT
> 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

> Searching for a section break can be done by using "^b" in the search
> string.
[quoted text clipped - 6 lines]
>
> Eddie
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.