excel vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

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

Excel VBA

resolvedResolved · Low Priority · Version 2003

Anthony has attended:
PowerPoint Intermediate Advanced course
Excel VBA Intro Intermediate course
Project Intro Intermediate course
Upgrade to Office 2007 course

Excel VBA

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

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.


 

Excel tip:

Adding up rows or columns without seeing formulas

Highlight a column or row and click the Autosum button. This gives you your answer without showing the formula.

View all Excel hints and tips


Server loaded in 0.07 secs.