variables

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 » Variables

Variables

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

Manually wrapping text

To manually wrap text, use the shortcut key Alt+Enter.

To cancel manual text wrapping, simply delete the new line.

View all Excel hints and tips


Server loaded in 0.08 secs.