Excel VBA - Message Box with a help file

Hi:
I'm trying to get the following help file to work with my message box.  Don't know what I'm doing wrong.

MsgBox "msg", vbMsgBoxHelpButton, "title msg", "c:\student1\myhelpfile.chm"
brothertruffle880Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Saqib Husain, SyedConnect With a Mentor EngineerCommented:
A context number is also required

MsgBox prompt:="msg", Buttons:=vbMsgBoxHelpButton, Title:="title msg", HelpFile:="c:\student1\myhelpfile.chm", Context:=1000
0
 
Saqib Husain, SyedEngineerCommented:
Try

MsgBox prompt:="msg", Buttons:=vbMsgBoxHelpButton, Title:="title msg", HelpFile:="c:\student1\myhelpfile.chm"
0
 
brothertruffle880Author Commented:
Hi  ssaqibh:

I tried running it and received the following message:
err
0
 
brothertruffle880Author Commented:
Thank you.  Perfect!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.