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

excel

ResolvedVersion 2003

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

Excel

What are the difference between Global,Public and Private

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.

 

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:

Change the Default Width of All Columns in Excel 2010

If you want to change the width of the columns in your Excel 2010 spreadsheet, making them either larger or smaller, here's how:

In the Cells group on the Home tab, click Format.

Hover over the section called Cell Size and a drop down list will appear, select Default Width from this list.

In the Standard Width dialog box, enter the size you want to set as the default width and click OK.

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.23 secs.