Microsoft KB Archive/65933

Macro Changes from Word 5.00 to 5.50

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

5.50

MS-DOS

= SUMMARY =

Listed below are changes in Word’s macro language from version 5.00 to version 5.50.

Checked (Data type: Boolean; true or false)
This variable can be used to determine whether a menu item is toggled on or off.

Checked = TRUE if a menu item is checked (toggled on). Checked = FALSE if a menu item has no check (toggled off).

Example:

 V <>  <>

This instruction turns off Word’s Layout mode if it is on.

Zoomed Window
“Zoomed Window” is no longer a reserved variable in Word version 5.50. It has been replaced by the “maximized” variable.

Maximized (Data type: Boolean; true or false)
Returns the value TRUE if a window is maximized, FALSE if not.

Example:

<>R

If the window is maximized, the ruler will be toggled.

Endmark (Data type: number)
Returns 1 (true) if the current selection is empty and the cursor is at the endmark.

Example:

<>

This instruction will carry out subsequent macro steps if the endmark is not true.

Page (Data type: number)
Returns the current page number.

Help (Data type: Boolean; true or false)
This variable can be used to determine is the active window is a Help window.

Example:

<> <>

This macro will close the Help window if it is active.

Menu Key Name
The following is a new key name for Word version 5.50:

 is a new key name for Word version 5.50 and is used to activate the menu in a macro.

Example:

eg16

This macro command activates the menu and will “Go to” or “jump” to Page 16.

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