ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MsgBox (https://www.excelbanter.com/excel-programming/294558-re-msgbox.html)

Bob Phillips[_6_]

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?




All times are GMT +1. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com