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

resolvedResolved · Low Priority · Version 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:

Convert Text to Columns in Excel 2010

If you have a cell in your Excel spreadsheet that contains a lot of text and you want to divide it into separate columns, this can only be done if there is a logical character which separates the text, for example, a comma.

Select the cells you would like to convert. On the Data tab, click Text to Columns. Choose the format of your current data.

Select Delimited if the text contains a logical character otherwise select Fixed Width if there are a certain number of spaces between each field.

Click Next when a preview of the data appears. Then select the type of character that separates the various fields. If the character is not listed, select Other and enter the character.

Click Next again and then choose the format for each of the columns. Select the column heading in the Data preview and then select a data type from the Column data format options.

Click Finish and the text will appear in several columns.

View all Excel hints and tips


Server loaded in 0.08 secs.