A.20. Variable Declaration

Const Statement

Declares a constant

Dim Statement

Declares a local variable at procedure level

Friend Statement

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

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

Type...EndType Statement

Declares a user-defined type

Get VB & VBA in a Nutshell: The Language 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.