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

Excel VBA

resolvedResolved · Low Priority · Version 2003

replyReply Thu 16 Apr 2009, 16:07Delegate Anthony said...

Excel VBA

What's the difference between Private and Publically declared variables?

For upcoming training course dates see: Pricing & availability

replyReply Fri 17 Apr 2009, 09:03Trainer Simon said...

RE: Excel VBA

Hi Anthony,

Thank you for your question.

A declared Public proceudre can be called from within other modules but a Private procedure is only available to other procedures in the same module.

Public Variables can be declared at the top of any standard Public module. These are available to all procedures in all modules.

Dim and private are used in the Declarations section which is outside the procedure itself. This is done in the Option Explicit. These will be available to all procedures in the same module.

I hope this answers your question.

Regards

Simon

Thu 23 Apr 2009: Automatically marked as resolved.

 

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

Excel tip:

Status Bar Functions

When using the SUM, MIN, MAX, AVERAGE and COUNT functions, the result of such calculations are displayed in the worksheet.

However, if a range of cells, containing numbers, is highlighted, and then a right-mouse click is performed at the bottom right side of the status bar, then the result of those functions will be displayed.

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