Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need some code so that if the sub errors anywhere the sub simply ends
instead of giving the user the "Debug or End" message box. Please help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use On Error Goto something like this...
Sub WhatEver() On Error GoTo ExitSub 'Your Code ExitSub: End Sub -- HTH... Jim Thomlinson "Aaron" wrote: I need some code so that if the sub errors anywhere the sub simply ends instead of giving the user the "Debug or End" message box. Please help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Public Sub AbortOnError() On Error GoTo ErrHandler 'Your code here Exit Sub ErrHandler: 'Handle Error, Clean up, or just exit End Sub In article , Aaron wrote: I need some code so that if the sub errors anywhere the sub simply ends instead of giving the user the "Debug or End" message box. Please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |