directly jump errorhandler stop
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Directly jump to ErrorHandler: stop

resolvedResolved · Low Priority · Version 2010

replyReply Wed 21 Dec 2011, 16:09Delegate Julie said...

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

For upcoming training course dates see: Pricing & availability

replyReply Thu 22 Dec 2011, 09:41Trainer Anthony said...

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

replyReply Thu 22 Dec 2011, 19:32Delegate Julie said...

RE: directly jump to ErrorHandler: stop

Hey Anthony,

Thank you very much indeed!

Merry Xmas and Happy New Year!

Julie

 

Please browse our web site to find out more about
excel consultants and other Microsoft training courses.

Excel tip:

Switch on smart tags – Excel 2007

In order to use smart tags, make sure they are turned on, to do this:
1. Click on ‘Microsoft Office‘ button and then click on ‘Excel Options‘.
2. Click on ‘Proofing‘ category and then click on ‘Auto Correct Options‘.
3. In the ‘Auto Correct‘ dialogue box appears, click the ‘Smart Tags‘ Tab.
4. Tick the boxes, next to the Smart Tags you wish to use in Excel

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard