vba

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA

VBA

resolvedResolved · Low Priority · Version 2003

Jenna has attended:
Excel VBA Intro Intermediate course

VBA

What does run-time error 13 mean?

RE: VBA

Hi Jenna

Run-time error 13 is a Type mismatch error. This means that the variable isn't of the correct type.

A variable that requires an integer value can't accept a string value unless the whole string can be recognized as an integer (eg "125").

To overcome this problem you should always make assignments between compatible data types. For example:

An Integer can always be assigned to a Long, a Single can always be assigned to a Double, and any type (except a user-defined type) can be assigned to a Variant.

Hope this helps

Carlos








 

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:

Change Excel's default font

You can change the default font and font size for all spreadsheets created in Excel by:

1. Going to Tools on the menu bar.
2. Select Options, then General.
3. Next to Standard Font you can change the font and font size.
4. Click OK.

Each new file you start from this point onward should use the font and font size you have selected.

View all Excel hints and tips


Server loaded in 0.07 secs.