Variable Declaration

Const Statement

Declares a constant

Dim Statement

Declares a variable

Option Explicit Statement

Requires variable declaration

Private Statement

Declares the procedure or variable to have scope only in the module in which it is defined

Public Statement

Declares a procedure or variable to have scope in the module and project in which it is defined and, if declared in an object module, to have scope outside the current project

ReDim Statement

Declares a dynamic array variable

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.