Microsoft KB Archive/60605

Word: Using Function Keys in Macros

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

5.00 5.50 6.00

MS-DOS

= SUMMARY =

When using macros, function key notations can be used to represent the actions associated with the function keys. When a macro encounters a function key notation, it carries out the command or action that is currently assigned to the function key.

For example, the initial action performed by the F6 function key is to extend a selection; therefore, in most cases, when a macro encounters the F6 function key notation, it starts to extend a selection. However, if a new command is assigned to the F6 function key, the macro carries out the new command when it encounters the F6 function key notation.

= MORE INFORMATION =

The CTRL+X Prefix
Function key commands or actions can be changed by assigning a function key or function key combination to the control code portion of a macro name. The macro always performs the initial function key action (by using the CTRL+X notation) before any of the function key notations.

For example, to get a macro to extend a selection when it encounters the F6 function key notation, regardless of what action is currently assigned to the F6 function key, enter CTRL+XF6 in the macro.

To use the original action of the function key with Word 5.50, press CTRL+A before pressing the function key.

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