ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MSG Box - Stop Macro (https://www.excelbanter.com/excel-programming/339335-msg-box-stop-macro.html)

Janet H[_2_]

MSG Box - Stop Macro
 
I have this line in my code -

lastrow = Application.ActiveCell.Row
If Range("k" & lastrow) = "Atty Fees" Then MsgBox "Complete Benefit Calc
1st"

If the criteria causes the MsgBox to appear, I want to stop the process and
return the user to lastrow + 1

What do I add to the end of the MsgBox line to do this?

Thanks!



All times are GMT +1. The time now is 05:11 AM.

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