You might have noticed a couple of indicators on Word's status bar that you don't understand: At and Ln.
Ln is easy enough to guess: It displays the current line number, including blank lines. The At indicator is a bit more mysterious. It displays the distance between the top of the page to the current line. The truth is, you probably don't use them much, but if you do, there's a chance you're automating special format requirements. In this case, you might need VBA.
It's almost as easy to get VBA to return these values, if you know the right properties. To return the Ln and At values, use the following statements, respectively:
Debug.Print Selection.Information(wdVerticalPositionRelativeToPage) / 72
These two statements work as long as the document's in Print or Normal view, so take that into account when using VBA.
Related Topics:Developer Mobility Tech & Work CXO Software Hardware Smart Persons Guides
Susan Sales Harkins is an IT consultant, specializing in desktop solutions. Previously, she was editor in chief for The Cobb Group, the world's largest publisher of technical journals.