Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


Nested Error Handling

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
dh273



Joined: 11 Dec 2008
Posts: 1

PostPosted: Thu Dec 11, 2008 11:51 am    Post subject: Nested Error Handling Reply with quote

Hi. I'm trying to sort out some code for what to do if an error is caught in an error handling module. In other words,

[code]
function myFunction()
On Error GoTo errHandler

'some code here
exit function

errHandler:
'more code here. If an error occurs here, how can I send it to another area of the code to handle this error

end function
[/code]
Back to top
View user's profile Send private message
mohan.ankur
Moderator
Moderator


Joined: 02 Aug 2006
Posts: 52

PostPosted: Fri Dec 19, 2008 3:14 pm    Post subject: Reply with quote

Did you try on error goto 0
This resets the original error handler.
_________________
http://www.exceldepot.com
http://www.xlmacros.com
http://www.learnexcel.org
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group