Solved

Excel VBA - Message Box with a help file

Posted on 2013-11-24
4
659 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now