Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox problem 1

Status
Not open for further replies.

PockyBum522

Programmer
Jun 10, 2003
239
US
reply = MsgBox("Do you want to open this eBay item in a new browser?", vbYesNo, "eBay item number possible match", , vbQuestion)

Gives me invalid procedure call or argument, why?

Note: It's late, please don't kill me if it's obvious :p
 
Must...suppress...urge...to...kill... ;-)

Check your calling parms:

MsgBox(prompt[, buttons] [, title] [, helpfile, context])

so it becomes:

reply = MsgBox("Do you want to open this eBay item in a new browser?", [green]vbYesNo + vbQuestion,[/green] "eBay item number possible match")


"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Simply replace your command with this one:

reply = MsgBox("Do you want to open this eBay item in a new browser?", vbYesNo + vbQuestion, "eBay item number possible match")

In other hand you must add vbQuestion in Buttons section.
 
Ahh, thank you. Thank you for controlling the fist of death too :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top