Consider the following scenario. In Microsoft Office Excel 2007, you use a custom Help file for a Microsoft Visual Basic for Applications (VBA) project. In the VBA project, you try to open the custom Help file. To do this, you click the Help button on the title bar of a UserForm, and then you click the background of the UserForm. In this scenario, the VBA Help file appears instead of the custom Help file.
To work around this problem, follow these steps:
Open the UserForm in the VBA project.
Add a command button control to the UserForm.
Double-click the command button, and then add the following code:
Note HelpFile.chm is the custom Help file that you want to use in the VBA project.
Microsoft has confirmed that this is a problem in Microsoft Office Excel 2007.