'Print information about selection.
Debug.Print "Column: " & _
Debug.Print "Line: " & _
Debug.Print "Current Page: " & _
Debug.Print "Total Pages: " & _
End SubBefore running the code, make sure there's a document open. Then, return to the VBE and press [Ctrl]+G to open the Immediate window (if necessary). To run the code, click anywhere inside the actual sub procedure and press F5. Each Debug.Print statement concatenates a description, such as Column, Line, and so on to the results of the corresponding property and prints the results to the Immediate window. This particular sub procedure isn't meant to actually do something that you can immediately employ in your own documents. Rather, it's an introduction to the Information property. Now that you know how to pass the appropriate parameter, you can learn just about anything you need to know about the current selection in a Word document.
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.