MenusCount Property (AMenu)

Returns the number of menu objects in this menu object.

Syntax

[ lMenusCount = ] Object.MenusCount

The MenusCount property syntax has the following parts:

 

Name

Type

Description

Object

AMenu

AMenu object

lMenusCount

Long

A integer specifying the number of menu objects in this menu object.

Comments

This property is read-only at run time.

You can use this property to cycle through all the submenus on a menu and perform an operation on each.

Example

The following statement returns the number of submenus on the AMenu:

lmenusCount1 = mnu1.MenusCount

Applies to

AMenu

See Also

Menus