MsgBox Question

  • Thread starter Thread starter Bre-x
  • Start date Start date
B

Bre-x

Hi,
I have this code on a Form

Response = MsgBox("My Question", vbQuestion + vbMsgBoxHelpButton + vbYesNo,
"My Title")
MsgBox Response

if you Click Yes you get 6
if you click No you get 7

but you don't get a Response when you click Help

What I am trying to do is to ask the user if you wants to do "something" and
if he/she click Help. I would like
to open another msg/form to show some text explaining my "Question"


Regards,

Bre-x
 
Hi Bre-x,

The Help button doesn't make the messagebox return a value. Instead, it
launches the help system - but only if you've also created a Help file
and passed the filename and HelpContextID to the MsgBox() function.

If you don't want to go to the trouble of creating a Windows or HTML
Help file (and it is trouble, if you've never done it before), replace
your messagebox with a little custom form with the three buttons; or if
the help message is simple you could just include it in a label on the
form.
 
Back
Top