ExcelBanter

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

Mike H.

MsgBox()
 
I want to display a message box with an icon, Buttons:=vbCritical, but I also
want to have the user have more than just the OK button to click, like
vbOkCancel. How can I do both?

papou[_4_]

MsgBox()
 
Hello Mike
Very simply with:
MsgBox "This is my personnal critical message", vbCritical + vbOKCancel,
"Warning!"

HTH
Cordially
Pascal

"Mike H." a écrit dans le message de news:
...
I want to display a message box with an icon, Buttons:=vbCritical, but I
also
want to have the user have more than just the OK button to click, like
vbOkCancel. How can I do both?





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

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