inputbox and helpfile

G

george-smith

Can someone explain what I am doing incorrectly with this code?

examle 1 and 2 work OK. example 3 does not display a help button on
the inputbox. I believe the syntax is ok, so what am I doing wrong?

tia
g.

example 1
MsgBox "Press the help button", _
Buttons:=vbOKCancel Or vbMsgBoxHelpButton, _
HelpFile:=ThisWorkbook.Path & "\my.chm", _
Context:=144

example 2
strData = InputBox( _
Prompt:="Enter a number" & vbLf & vbLf & _
"Enter a 0 to quit", Title:="Add Rows", _
HelpFile:=ThisWorkbook.Path & "\my.chm", Context:="144")

example 3
'lNumber = Application.InputBox( _
Prompt:="Enter a number", Title:="Number", _
HelpFile:=ThisWorkbook.Path & "\my.chm", HelpContextID:=144, _
Type:=1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top