Solved

Excel VBA - Message Box with a help file

Posted on 2013-11-24
4
1,006 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

688 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