Microsoft KB Archive/44919

From BetaArchive Wiki

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:

<CTRL F5><CTRL F5>

Include the following code in a Word 5.5 macro:

<ALT U>L<ESC>

The first <CTRL F5> or <ALT U>L turns on the Line Draw feature and automatically sets the Overtype status to off regardless of its previous value. The second <CTRL F5> or the <ESC> 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.