Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Nile_Hef wrote: You need an 'Exit Sub' before the start of your 'Thyagaraj_Not_Found: ' error-handling code. Otherwise the code runs all the way to 'End Sub', line by line, including the lines in your error handler. Personally, I would insert a label for the 'Exit' code, so that the error-handler (and any other exit point in your code) can resume at a block of code containing any 'cleanup' routines you use at the end of the procedu ExitSub: [cleanups - erase arrays, set objects = Nothing etc.] Exit Sub ErrThyagaraj_Not_Found: [Error-Handling code] Resume ExitSub End Sub Thanks for all of U |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error | Excel Discussion (Misc queries) | |||
"Microsoft Visual Basic runtime error '424' object required". | Excel Worksheet Functions | |||
What is Error "Method "Paste" of object "_Worksheet" failed? | Excel Programming | |||
error while compiling "OBJECT REQUIRED" | Excel Discussion (Misc queries) | |||
Getting "Object Required" Error Message - Need Help !!! | Excel Programming |