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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Msgbox buttons

Status
Not open for further replies.

fatz09

MIS
May 19, 2003
30
GB
Thanks in advance for any help.

Does anyone know how to set the default focus on a vbOKCancel button to "Cancel" instead of "OK"

Thanks again.

Fatz
 
I believe you're looking for this:
Code:
var = msgbox ("Prompt", vbOKCancel + vbDefaultButton2)

-------------------------
Just call me Captain Awesome.
 
Hey, it's what I do. I'm just that awesome.

-------------------------
Just call me Captain Awesome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top