Removes the menu item with the specified index Returns the number of menu item, remaining in the menu after the operation.
Applies to: Menu object
[[Let] countRet =] object.RemoveMenuItem ( index ) |
The RemoveMenuItem method syntax has these parts:
Part | Description |
object | Required. An expression, that returns an instance of the Menu object. |
index | Required. An expression that returns a Long value. Indicates the index of the menu item to be removed in the menu item collection of the menu. |
countRet | Optional. A Long type variable. |
If index is less than 1 or greater than the number of menu items in the menu, the RemoveMenuItem method removes nothing.
See Also |