Microsoft KB Archive/65697

Macro: Capturing the Column Number

PSS ID Number: Q65697 Article last modified on 11-02-1994

4.00 5.00

MS-DOS

= SUMMARY =

The following macro can be used to return the column number position of the text cursor. The value returned should be the same as the number or value that is displayed in the lower left-hand corner of the Word screen (that is, Co7).

<>  <> < <>  <> < <> << = CTRL+[ >> = CTRL+]

For example, if the text cursor is on the “x” character in the following sentence, the above macro will return the number 7 to the beginning on the line:

The fox jumped over the fence.

7The fox jumped over the fence. (after running macro)

The number 7 indicates that the cursor was positioned on the seventh column of the line when the macro was invoked.

Note: This macro can be edited or added to an existing macro in order to return the cursor’s column position.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.