CountMenus()

Syntax

CountMenus(Type [Context])

Remarks

Returns the number of menus of the specified type.

Argument

Explanation

Type

The type of menu to count:

0 (zero) Menus on the menu bar when a document is open

1 Menus on the menu bar when no document is open

2 Shortcut menus

Context

Specifies which menus are counted:

0 (zero) The menus that are available when a document based on the Normal template is active

1 or omitted The menus that are currently available

Note that the menus that are available depend on the custom settings, if any, of the active template, any loaded global templates, and the Normal template.


For an example, see MenuText$().

See Also

CountMacros(), CountMenuItems(), MenuText$()