declarations
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 » Declarations

Declarations

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

resolvedResolved · Medium Priority · Version 2003

Declarations

Joshua has attended:
Excel VBA course

by - delegate Joshua [1 post] (2008 Apr 29 Tue, 12:24) replyReply

How do declarations work in the VBA scripting and when should they/could they be used?

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 8 Mon + 9 Tue Bayswater 2 book now £495 £495
2003 2008 Sep 18 Thu + 19 Fri Bloomsbury 1 book now £495 £495
2003 2008 Sep 25 Thu + 26 Fri Southwark 3 book now £475 £495
2003 2008 Oct 6 Mon + 7 Tue Bayswater 4 book now £475 £485
2007 2008 Oct 13 Mon + 14 Tue Bayswater 3 book now £475 £495
2003 2008 Oct 23 Thu + 24 Fri Southwark 4 book now £475 £485
Full Schedule: See all 44 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: Declarations

by - trainer Carlos gold contributer[413 posts] (2008 Aug 1 Fri, 15:13) replyReply

Hi Joshua

Declaration statements are used to declare variables.

A variable declaration establishes its name, scope and data type. eg:

Dim UserName as String

They should be used to declare every variable you need in the code.

Furthermore you should always ensure that the Option Explicit statement is in the Declarations area of your code.

Hope this helps

Carlos




Related articles

· Microsoft Excel Training - Numerical excellence for all
· Reasons Why VBA for Excel Training Fails
· 3 Reasons Why Excel Training Courses For Employees Can Improve Your Business
· Customized Financial Excel Courses in London
· Fun Things I've Done With Excel

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

Excel tip:

Random Numbers

Type =RAND()*200 to generate a number between 1 and 200.
Use the fill handle to drag down and populate as many cells as you'd like with random numbers.

View all Excel hints and tips

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
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