vba

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

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

VBA

resolvedResolved · Low Priority · Version Standard

Stuart has attended:
Excel VBA Intro Intermediate course

VBA

what is the difference between a variable and a variant?

RE: VBA

Hi Stuart

A Variable is used to store temporary information that is used for execution within the Macro or Module

On the other hand a Variant is a Variable Data type.

Id the Variable is declared without a data type the computer defaults the data type to Variant.

Hope this helps

Carlos


 

Excel tip:

Separate the year from a date

To separate the year from a date use the =year() function, eg a date is in cell A1 and in A2 you wish to display the year enter the function =year(A1)

View all Excel hints and tips


Server loaded in 0.08 secs.