Microsoft KB Archive/44919

Word: Testing for Overtype Status in a Macro

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

4.00 5.00 5.50 6.00

MS-DOS

= SUMMARY =

The following is a workaround for the limitation of not being able to test for the status (on/off) of the Overtype feature (when it is on, OT will appear on the status line) from within a macro in Microsoft Word version 4.0, 5.0, or 5.5.

Include the following code in a Word version 4.0 or 5.0 macro:



Include the following code in a Word 5.5 macro:

L

The first  or L turns on the Line Draw feature and automatically sets the Overtype status to off regardless of its previous value. The second  or the  turns off the Line Draw and leaves the Overtype in the off position. The current status of the Overtype toggle is off.

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