RemoveMenu Method (AMenu) |
Version 6 |
Deletes and removes the specified menu of given name or index.
Object.RemoveMenu ( vNameOrIndex )
The RemoveMenu method syntax has the following parts:
Name |
Type |
Description |
Object |
AMenu |
AMenu object - menu parent |
vNameOrIndex |
Val Variant |
Menu's name or index to be removed |
This method does not apply to the top-level menu, of type amenuTypeBar.
If menu name or index is invalid, then it will return False.
The following statement removes a menu :
mnuParent.RemoveMenu(sMenu)