Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wanted to determine whether a sheet existed in the active workbook. So I
used: On Error Goto NoPerfSheet Sheets("Performance").Select On Error Goto 0 However, Excel always stopped at the Sheets command, with a Subscript out of range error. I knew there would never be more than two sheets in the workbook, so I got it working by using: IF Sheets.Count = 1 Goto NoPerfSheet However, I'm why the On Error statement was ignored. What conditions causes VBE to ignore On Error? -- Thanks, Fred Please reply to newsgroup, not e-mail |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
On Error GoTo | Excel Programming | |||
On Error Goto doesn't goto | Excel Programming | |||
On Error Goto doesn't goto | Excel Programming | |||
On error goto 0? | Excel Programming | |||
On error goto 0 | Excel Programming |