Microsoft KB Archive/63552

Word 5.00: Setting Overtype or Insert Mode in a Macro

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

5.00

MS-DOS

= SUMMARY =

When the F5 function key is pressed, Word will toggle between Insert and Overtype mode. This switch is a simple toggle. There is no macro command or environment variable that will set Word specifically to Insert or Overtype mode.

The following macros allow Word to be set into either Insert or Overtype mode, regardless of the mode Word is in before the macro is executed. left (<<) and right (>>) chevrons are created by pressing CTRL+[ and CTRL+]. For more information on writing a macro, please see Page 445, “To write a macro,” in the “Using Microsoft Word” manual.

Use the following macro to set Word to Insert mode:

<> <> ws 18 y p p <> <>< > wc n<><>

Use the following macro to set Word to Overtype mode:

<> <> ws 18 y p p <> <>< > wc n<><>

= MORE INFORMATION =

The Word macro function LEN was first available with Word 5.00; therefore, these macros do not work with earlier versions of Word.

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