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

vba training london - variable vs variant

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba training london - Variable vs variant

vba training london - Variable vs variant

ResolvedVersion Standard

Ramzi has attended:
Excel VBA Intro Intermediate course

Variable vs variant

whats a difference between a variable & a variant?

RE: variable vs variant

Hi Ramzi

A Variable is a place to store a piece of information in the computer's memory.

Just as you might store a person's telephone number in your memory, you can store information in a computer's memory. Variables are a way of accessing the computer's memory and setting aside memory space to store the information.

A Variant is essentially a universal data type.

It can contain any kind of information internally, and represent any data type

Regards

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.

VBA tip:

Empty The Clipboard with CutCopyMode

After each Copy/Paste operation in VBA, you should use the following line of code to empty the clipboard. This ensures that the computer memory doesn't overload:

ActiveSheet.Paste
Application.CutCopyMode = False

View all VBA hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.