ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Dialog box in a macro (https://www.excelbanter.com/excel-programming/404109-dialog-box-macro.html)

cagey63

Dialog box in a macro
 
While executing a macro, I want to first show a form or message box
providing information to the user and allow continuation or
cancellation of the macro dependent upon the user's decision. I've
got the macro built and functioning but I'm unsure of the best way to
execute this additional step.

Thanks for the help.

FSt1

Dialog box in a macro
 
hi
a yes/no message box inclosed in an if statement might work.

If MsgBox("entery message here", vbyesno) = vbYes Then
Exit Sub
End If

if the user select yes, code stops otherwise it will continue.

regards
FSt1
"cagey63" wrote:

While executing a macro, I want to first show a form or message box
providing information to the user and allow continuation or
cancellation of the macro dependent upon the user's decision. I've
got the macro built and functioning but I'm unsure of the best way to
execute this additional step.

Thanks for the help.



All times are GMT +1. The time now is 12:25 AM.

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