Returning information from status bar

L

Larry

How do you access programatically the information in the status bar of
Word 97? I'm interested in the "col" which returns how many characters
the cursor is from the left margin of the text.

Thanks,

Larry
 
H

Helmut Weber

Hi Larry,

can't check word 97 right now,
but with 2002 it is:

Selection.Information(wdFirstCharacterColumnNumber)

Though I doubt, whether this is, strictly speaking,
information from the status bar.

Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 
L

Larry

That's it, Helmut, thanks so much.

I had looked for "column" in VBA help, but didn't turn this up. I don't
know how I would have found this on my own.

I also needed to figure how far the IP was within a certain distance of
the end of a line, for which I used this:

If Selection.Start > ActiveDocument.Bookmarks("\Line").Range.End - 5

Thanks again,

Larry
 

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