Simulates a user click on a menu item.
| Visual Basic |
|---|
Public Sub ActivateMenuItem( _ ByVal MenuUID As String _ ) |
We recommend using this method instead of MenuItem.Activate because:
The UI API throws an exception when trying to activate system menu items that are disabled by the system.