FindMenuItem Method

This method searches for an instance of the MenuItem object in the menu item collection of the menu.

Applies to: Menu object

Syntax

[[Let] indexRet =] object.FindMenuItem ( menuItemObj )

The MenuItem method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Menu object.
menuItemObj Required. An expression, that returns an instance of the MenuItem object. Represents a menu item, which index is to be found.
indexRet Optional. A Long type variable.

Remarks

If the search was successful, the FindMenuItem method returns the index of the specified menu itme in the menu item collection of the menu. Otherwise, it returns 0.

 

See Also