excel vba
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Excel VBA

The UK's most regular instructor-led training courses.
Training information: excel+training · Excel course · Microsoft Office VBA training

resolvedResolved · Low Priority · Version 2003

Excel VBA

Guangwen has attended:
Excel Advanced course
Excel VBA course

by - delegate Guangwen [2 posts] (2008 Jul 3 Thu, 16:39) replyReply

How many different ways can variables be defined?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Nov 27 Thu Bloomsbury 3 book now £240 £245
2003 2008 Nov 28 Fri Southwark 1 book now £235 £240
2003 2008 Dec 3 Wed Bloomsbury 0 FULL    
2003 2008 Dec 5 Fri Bayswater 5 book now £195 £205
2002/XP 2008 Dec 10 Wed Tooting 0 FULL    
2003 2008 Dec 10 Wed Bloomsbury 0 FULL    
Full Schedule: See all 98 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

Variable Scope

by - trainer Carlos gold contributer[479 posts] (2008 Jul 24 Thu, 12:26) Edited on 2008 Jul 24 Thu, 12:36 replyReply

Hi Guangwen

When declaring variables it must be remembered that there are 3 levels. They are:

Procedure-Level Variables

This is the most widely used variables. They are declared inside the Procedure itself (using the Dim keyword). Only the procedure that contains the variable declaration can use it. As soon as the Procedure finishes, the variable is destroyed.

Module-Level Variables

These are variables that are declared outside the Procedure itself in the Declarations section of a module (using the Dim keyword).

All variables declared at this level are available to all Procedures within the Module.

Public Variables

These variables are declared at the top of any standard Public module. Public variables are available to all procedures in all modules in a project

The Public keyword can only be used in the Declarations section

Hope this helps

Carlos


Related articles

· Advanced level training: Microsoft Excel and the Web
· Microsoft Excel Training Advanced Courses - Making Data Validation Work For You
· Excel Macros for the Non-Programmer
· Take the Anxiety out of Domestic Finances with Microsoft Excel
· 3 Reasons why Your Small Business Office Needs Microsoft Excel Training

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

Excel tip:

Calculate age or service

The DATEDIF() function in Excel calculates the number of days, months, or years between two dates. So, this function makes it easy to calculate a person's age. To try this tip:

In a blank worksheet, type the birth date in cell A1, using slashes to separate day, month, and year.
In cell A2, type =DATEDIF(A1,TODAY(),"y") and press ENTER.

View all Excel hints and tips

Rate this page:
3.5/5 (2 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz