Helpfile attributes
Sets or returns the complete valid path of the Help file.
Object.Helpfile[= Contextid]
Parameters
Object
Required.ErrObject.
Contextid
Optional. The complete valid path of the Help file.
Description
IfHelpfileWhen the Help file is specified, When you clickHelpThis file is automatically called when you press the button (or press the F1 key. IfHelpcontextIf the attribute contains the valid context ID of the specified file, the topic is automatically displayed. If not specifiedHelpfileThe VBScript help file is displayed.
on error resume nextdim msgerr. clearerr. Raise 6' produces an "overflow" error. err. helpfile = " yourhelp. HLP " err. helpcontext = yourcontextid If err. number <> 0 then MSG = " press F1 or help to view "& err. helpfile & " topics related to the following helpcontext" & _ " :" & err. helpcontext msgbox MSG, " error :" & err. description, err. helpfile, err. helpcontext end if