ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Abort or continue (https://www.excelbanter.com/excel-programming/273525-re-abort-continue.html)

Ed Ferrero[_4_]

Abort or continue
 
Hi David,

Dim resp As Long

resp = MsgBox("Do you wish to continue?", vbYesNo)

If resp = vbNo Then Exit Sub

' else just runs the code below
MsgBox "You pressed Yes"

--
Ed Ferrero
http://edferrero.m6.net




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

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