Variables and Constants

=

Assignment

Const

Define a constant

DefBool

Set the default data type to Boolean

DefCur

Set the default data type to Currency

DefDate

Set the default data type to Date

DefDbl

Set the default data type to Double

DefInt

Set the default data type to Integer

DefLng

Set the default data type to Long

DefObj

Set the default data type to Object

DefSng

Set the default data type to Single

DefStr

Set the default data type to String

DefVar

Set the default data type to Variant

Dim

Declare a local variable

Global

Declare variables for sharing between scripts

Let

Assign a value to a variable

Private

Declare variables accessible to all routines in a script

Public

Declare variables accessible to all routines in all scripts

Set

Assign an object variable

Type

Declare a user-defined data type

More information

Language elements by category