Simulates a user click on the menu.
Simulates a user click on the menu.
| Visual Basic |
|---|
Public Sub Activate() |
To improve performance as well as to make sure you activate the correct item, it is recommended to use the ActivateMenuItem method of the Application object.
If you try to activate a system menu item that was disabled by the system, an exception is thrown.