Msgbox help

G

Guest

Guest
I am trying to use the following msgbox function - however I cannot seem to get the help option in the msgbox to work.
Response = MsgBox("This is a test","64","Demo" "C:appxhelp.hlp",7)

I have a valid help file and context - but including this does not give me any help buttons and even pressing F1 brings up only general excel/vba help.

Surprisingly when I use the same helpfile and context in the inputbox function - It works ! In the input box I see the additional help button and F1 also works.

What could be going wrong in the msbgox function ??
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I am trying to use the following msgbox function - however I cannot seem to get the help option in the msgbox to work.
Response = MsgBox("This is a test","64","Demo" "C:\app\xhelp.hlp",7)

I have a valid help file and context - but including this does not give me any help buttons and even pressing F1 brings up only general excel/vba help.

Surprisingly when I use the same helpfile and context in the inputbox function - It works ! In the input box I see the additional help button and F1 also works.

What could be going wrong in the msbgox function ??

Well, on first look you're using a string where you should be using a number. Plus, the 'number' you're using is incorrect. Try this:-

intResult = MsgBox("This is a test", vbMsgBoxHelpButton, "Demo", "C:appxhelp.hlp", 7)


The constant vbMsgBoxHelpButton has an actual value of 16384.

HTH,
D
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top