Name
Err.HelpFile Property
Data Type
String
Description
A read/write string property that contains the fully qualified path of a Windows Help or HTML Help file.
Rules at a Glance
The HelpFile property can be set either directly or by
supplying the fourth parameter (the
helpfile parameter) to the Err.Raise
method.
Example
See Err.HelpContext.
Programming Tips and Gotchas
Some objects you may use within your application have their own help files, which you can access using HelpFile to display highly focused help to your users.
Remember that once the program encounters an
OnErrorstatement, all the properties of the Err object are reset; this includes HelpFile. You must therefore set the Err.HelpFile property each time your application needs to access the help file.In ASP applications, the HelpContext and HelpFile properties should not be used, since context-sensitive help on the server is undesirable. In IE applications, particularly those that are accessible over the Internet, use of the HelpContext and HelpFile properties is not advisable, since you can’t be certain that the appropriate help file is available on the client.
VBA/VBScript Differences
Much of the utility of the HelpFile and HelpContext properties in VBA stems from the fact that, for errors recognized by the runtime engine, these values are automatically supplied to the Err object and can in turn be passed to the MsgBox function. In VBScript, however, these values are not updated automatically; if you want to use a help file or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access