Microsoft Office 2000/Visual Basic Programmer's Guide |
As mentioned earlier in this chapter, there are two ways to display a custom Help topic from code. In Excel and PowerPoint, you can use the Help method of the Application object, but in Word and Access you must use an API call to HTML Help or to WinHelp to display the Help topic. For this reason, if you need to use the same code across applications, you must use an API call. The following sections describe how to do both, and also detail how to display Help topics from the InputBox and MsgBox functions, how to display Help topics when error messages are displayed, and how to associate Help topics with properties and methods in class modules.