MenuItemsNum Method

Returns the number of the menu items, contained in the menu.

Applies to: Menu object

Syntax

[[Let] menuItemsNumRet =] object.MenuItemsNum ()

The MenuItemsNum method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Menu object.
menuItemsNumRet Optional. A Long type variable.

Remarks

If there are no items in the menu, the MenuItemsNum method returns 0.

 

See Also

AddMenuItem method, MenuItem method, MenuItem object