excel
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 » Excel

Excel

resolvedResolved · Low Priority · Version 2003

replyReply Tue 28 Oct 2008, 16:35Delegate Wilhelm said...

Wilhelm has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

Excel

What are the difference between Global,Public and Private

For upcoming training course dates see: Pricing & availability

replyReply Fri 21 Nov 2008, 16:58Trainer Carlos said...

RE: Excel

Hi Wilhelm

In Excel when declaring variables, Public is used to declare all Global variables (variables that are used at project/workbook level). They are usually declared at the top of a Module just under Option Explicit. eg

Public MyName As String

A Private variable can only be seen in the area that it has been declared in. This is used instead of the normal Dim to further emphasize that the declared variable must not be accesed from outside the declaration area. eg

Private MyAge As Byte

Hope this helps

Carlos

Fri 28 Nov 2008: Automatically marked as resolved.

 

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

Excel tip:

Outlining - Grouping rows or columns

Highlight want you want to group and press ALT + SHIFT + left cursor arrow

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