Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default MSG Box - Stop Macro

Why not just use the else criteria...

lastrow = Application.ActiveCell.Row
If Range("k" & lastrow) = "Atty Fees" Then
MsgBox "Complete Benefit Calc 1st"
activecell.offset(1,0).select
else
'Normal execution...
end if



--
HTH...

Jim Thomlinson


"Janet H" wrote:

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!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Stop LMP Excel Worksheet Functions 3 April 28th 08 07:33 PM
How do I stop a macro from running within a macro? JohnUK Excel Programming 1 June 26th 05 10:59 AM
Stop running a macro in the middle of a macro gmunro Excel Programming 3 June 9th 05 06:00 PM
Macro: With Stop it works. Without Stop it doesn't. Don Wiss Excel Programming 2 October 12th 04 10:49 AM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"