variables
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 » Variables

Variables

resolvedResolved · Low Priority · Version 2003

replyReply Wed 26 Nov 2008, 16:04Delegate Azmina said...

Azmina has attended:
Excel VBA Intro Intermediate course

Variables

when do you declare a variable privately?

For upcoming training course dates see: Pricing & availability

replyReply Tue 9 Dec 2008, 16:19Trainer Carlos said...

RE: variables

Hi Azmina

Declaring a variable Private is used to emphasize that only the area in which it was declared can see it

So at the Modular level (In the Declarations area) both of the following variables can be seen by all the Procedures in the module.

Dim sUserName as String

Private iCounter as Integer

Hope this helps

Carlos

Mon 15 Dec 2008: Automatically marked as resolved.

 

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

Excel tip:

Shared Conditional Formatting

In a shared workbook, conditional formats applied before the workbook was shared will continue to work; however you cannot modify the existing conditional formats or apply new ones.

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