Microsoft KB Archive/933557

From BetaArchive Wiki
Knowledge Base

You cannot use a custom Help file for a VBA project in Excel 2007

Article ID: 933557

Article Last Modified on 4/19/2007


  • Microsoft Office Excel 2007


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:

  1. Open the UserForm in the VBA project.
  2. Add a command button control to the UserForm.
  3. Double-click the command button, and then add the following code:

    Application.Help "FilePath\HelpFile.chm"

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

Keywords: kbtshoot kbexpertisebeginner kbprb KB933557