vba
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

VBA

resolvedResolved · Low Priority · Version 2003

replyReply Tue 4 Nov 2008, 16:09Delegate Pamela said...

Pamela has attended:
Excel VBA Intro Intermediate course

VBA

How to identify when to use variables?

For upcoming training course dates see: Pricing & availability

replyReply Mon 10 Nov 2008, 10:38Trainer Carlos said...

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

 

Please browse our web site to find out more about
vba-excel-training and other Microsoft training courses.

Excel tip:

Validating text entries

1. Select the range of cells.
2. From the Data menu, select Validation.
3. Select the Settings tab.
4. From the Allow dropdown list, select Custom.
5. In the Formula box, enter the following formula:
=IsText (A1)
where A1 is the first cell in the range.
6. Click OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard