Solved

Excel VBA - Message Box with a help file

Posted on 2013-11-24
4
934 Views
Last Modified: 2013-11-25
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"
0
Comment
Question by:brothertruffle880
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39673407
Try

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

Author Comment

by:brothertruffle880
ID: 39673458
Hi  ssaqibh:

I tried running it and received the following message:
err
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39673513
A context number is also required

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

Author Closing Comment

by:brothertruffle880
ID: 39674010
Thank you.  Perfect!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question