Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the code is interpreted and executed sequentially.
If you put nothing in to prevent it, after running the regular code, it would next enter and execute the error handling code (sounds like your situation). Most do this to avoid that On error goto NoCells ' regular code that could raise an error Exit sub NoCells: ' error handling code End Sub So if there is not error, the NoCells section is never entered because of the Exit sub. -- Regards, Tom Ogilvy "Ray" wrote: Thanks Tom .... your suggestions worked great! One follow-up question (in the name of learning) -- my initial modification didn't take the error-handling line out of the Userform code and when I tested the code (without 'errors' in the data), the msgbox created by the error- handling popped up anyway! Why would that have happened? Susan -- your suggestions are very useful as well, especially from an implementation standpoint! Your response is going into my 'code archive' ... Regards//Ray |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
code modules included in sheet count? | Excel Programming | |||
how do i change or make this macro??? pictures and code included | Excel Programming | |||
how do i change or make this macro??? pictures and code included | Charts and Charting in Excel | |||
Run-time error '9' ---- Code to fix included. | Excel Programming | |||
Require extra funtionality - existing code included | Excel Programming |