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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,213,546
Messages
6,114,255
Members
448,556
Latest member
peterhess2002

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