Debug Error

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
T

Todd Huttenstine

Hey guys,

When I am running a particular code (loop code) and I stop
it, I get a debug error. I would prefer to get a
messagebox saying "Program Stopped!"

How would I do this?

I was thinking maybe with a label?

Thanx

Todd Huttenstine
 
Well the user really wont hit Esc, they will just hit
cancel on an Outlook Email Dialog screen. I want it to be
something like this logic....


On Error GoTo Problem:
Problem:
MsgBox "Program Stopped!"
Exit Sub

Is this possible? RIght now if I put that in my code it
will run through that code and exit sub.


Thanx
 
Looks good to me

Todd Huttenstine said:
Well the user really wont hit Esc, they will just hit
cancel on an Outlook Email Dialog screen. I want it to be
something like this logic....


On Error GoTo Problem:
Problem:
MsgBox "Program Stopped!"
Exit Sub

Is this possible? RIght now if I put that in my code it
will run through that code and exit sub.


Thanx
 
Back
Top