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

variables

ResolvedVersion 2003

Azmina has attended:
Excel VBA Intro Intermediate course

Variables

when do you declare a variable privately?

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.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Page Break Preview in Excel 2010 (Hint/tip)

If you select View then Workbook Views then Page Break Preview, you will be able to view how your Excel spreadsheet will be split across multiple pages when printed. Even better, you can also drag a page break to a new place. Excel will then scale down your entire worksheet to fit the information you want on the pages you want.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.