Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Variables
Resolved · Low Priority · Version 2003
Phil has attended:
Excel VBA Intro Intermediate course
how do you declare a variable?
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 textTo manually wrap text, use the shortcut key Alt+Enter. |
We'll call during UK business hours
Server loaded in 0.08 secs.