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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
variables

ResolvedVersion 2003

Phil has attended:
Excel VBA Intro Intermediate course

Variables

how do you declare a variable?

RE: Variables

Hi Phil

A Variable is a name used to represent a value in VBA.

Variables are used to represent values that may change during the procedure and identify a unique location in memory.

The syntax used to declare a variable is

Dim/Public/Private VariableName [As type]. eg:

Public PivotSelection As Byte

Hope this helps

Carlos

Mon 9 Feb 2009: Automatically marked as resolved.

Excel tip:

Number format shortcut

Ctrl+Shift+! applies the Number format, with two decimal places

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.