Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
From tests and 'Help' it seems I need to restate On Error GoTo myErrorHandler after returning from each sub proc and after the On Error Resume Next. Is that correct or is there a better way to provide error handling throughout Main? T.I.A. Geoff Sub Main() On Error GoTo myErrorHandler blah SubProc1 ''no error handler in this proc On Error Resume Next foundIt = Sheets(1).Find("xxx", , , xlWhole) On Error GoTo 0 SubProc2 ''no error handler in this proc blah Exit Sub myErrorHandler: If Err.Number < 0 Then '''do something Err.Clear End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error Handling in Each Sub | Excel Programming | |||
Handling #NUM! error | Excel Worksheet Functions | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
Error handling with a handling routine | Excel Programming | |||
Error Handling | Excel Programming |