| ActivateMenuItem Method | |
| See Also |
- MenuUID
- The unique ID of the item to activate
Simulates a user click on a menu item.
| Visual Basic |
|---|
Public Sub ActivateMenuItem( _
ByVal MenuUID As String _
) |
- MenuUID
- The unique ID of the item to activate
We recommend using this method instead of MenuItem.Activate because:
- The MenuUID parameter does not change and does not require you to follow the item path of the Activate method, which is subject to changes.
- This method is more efficient.
The UI API throws an exception when trying to activate system menu items that are disabled by the system.