Thread: MsgBox
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default MsgBox

Something like

ans = MsgBox("Press a button", vbYesNo)
If ans = vbYes Then

You can use button values of

vbOKOnly, vbOKCancel, vbABortRetryIgnore, vbYesNoCancel, VbYesNo,
vbRetryCancel, vbCritical, vbQuestion, vbExclamation, vbInformation

and you can combine like this

vbYesNo + vbExclamation

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"dcstech" wrote in message
...
How do you get the return status from a message box............i.e. What

button was pushed?