Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

directly jump errorhandler stop

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Directly jump to ErrorHandler: stop

Directly jump to ErrorHandler: stop

ResolvedVersion 2010

Julie has attended:
Excel VBA Intro Intermediate course
Excel Advanced course

Directly jump to ErrorHandler: stop

Hey there, I really need your help please.

We did one project using vba, but after running, it directly jump to ErrorHandler:(stop became yellow colour)

On Error GoTo 0
Exit Sub
ErrorHandler:
Stop
Resume
If ExcelErrorHandler("Public Sub ArrayB") = True Then Resume Next
End Sub

So I am not sure where is wrong? Could you help me please?
Thank you!

Regards

Julie

RE: directly jump to ErrorHandler: stop

Hi Julie, thanks for your query. Try re-writing like so:

***

On Error GoTo Errorhandler:

<Your code here>

Exit Sub

ErrorHandler:

If ExcelErrorHandler("Public Sub ArrayB") = True Then Resume Next
End Sub

***

Hope this helps,

Anthony

RE: directly jump to ErrorHandler: stop

Hey Anthony,

Thank you very much indeed!

Merry Xmas and Happy New Year!

Julie

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Manually wrapping text

To manually wrap text, use the shortcut key Alt+Enter.

To cancel manual text wrapping, simply delete the new line.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.