Microsoft Office 2000/Visual Basic Programmer's Guide |
Displaying a Help topic when a user clicks a toolbar button or menu item is similar to creating a Help button for a form. However, command bar controls don't provide a Click event, so you must first create a Sub or Function procedure that displays the Help topic, and then set the control's OnAction property to the name of that procedure. The same restrictions apply when you are creating a procedure to display a Help topic as when you are creating a Help button: You can use the Help method of the Application object to display a custom Help topic only in Excel and PowerPoint, but you must use an API call to HTML Help to display a custom Help topic in Word and Access.
For more information about creating command bars and command bar controls, see Chapter 6, "Working with Shared Office Components."