ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Check Point in VBA (https://www.excelbanter.com/excel-programming/360964-check-point-vba.html)

Brian Matlack[_71_]

Check Point in VBA
 

Hi!
I would like to have a point in my code that displays a message box
that asks the user if they wish to continue or exit the macro. A simple
"Yes" and "No" button would be ok. This may be a point in the main macro
or a point in one of the subroutines.
1. What would the code look like for stopping the entire macro.
2. What would the code look like to stop the subroutine only.

Thanks for any help or advice!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=540309



All times are GMT +1. The time now is 12:33 PM.

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