variables

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

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

Variables

resolvedResolved · Low Priority · Version 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:

Hiding a worksheet in Excel

Want to circulate an Excel workbook file but keep certain worksheets hidden from your colleagues' view?

You can do so by bringing up the sheet you wish to hide on your screen; then going to Format - Sheet - Hide.

It will not be immediately obvious that a sheet is hidden from view unless perhaps the sheet are still labelled Sheet 1, Sheet 2 etc.

To display the sheet again, you can go to Format - Sheet - Unhide on any of the other sheets in the workbook. A dialogue box will appear, allowing you to select the hidden sheet/s. Click OK to make the sheet/s reappear again.

View all Excel hints and tips


Server loaded in 0.08 secs.