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

vba

ResolvedVersion 2003

Pamela has attended:
Excel VBA Intro Intermediate course

VBA

How to identify when to use variables?

RE: VBA

Hi Pamela

Variables are names used to represent values that may change during the procedure and identify a unique location in memory.

As a basic yardstick any time you ask the user to input any data or to select an option this should be stored in a variable.

Anothere use of variables is to store results of calculations.

The syntax is Dim/Public/Private VariableName [As type]. eg:

Dim Reply As Byte

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.

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.