Displaying Help from VBA Code

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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. 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.

In This Section