Microsoft Office 2000/Visual Basic Programmer's Guide |
Implementing context-sensitive Help for interface elements in UserForms is the same regardless of which Office application the form will be used with.
To define context-sensitive Help for UserForms
If you don't want to include the full path to the Help file, omit steps 3 and 4 and add code to the form's Initialize event that specifies the path by using the HelpFile and Path properties of the document. For example:
Dim strHelpPath As String
strHelpPath = ActiveDocument.Path & "\samplepopups.hlp"
ActiveDocument.VBProject.HelpFile = strHelpPath
Note You can specify only one Help file per VBA project. If you want to define context-sensitive Help for more than one UserForm or for class modules in the project, the Help file you specify must contain Help topics for all of these items.