Keywords (Visual Basic for Applications)

Keyword Used in these contexts
As Const statement
Declare statement
Dim statement
Function statement
Name statement
Open statement
Private statement
Property Get statement
Property Let statement
Property Set statement
Public statement
ReDim statement
Static statement
Sub statement
Type statement
Binary Open statement
Option Compare statement
ByRef Call statement
Declare statement
Function statement
Property Get statement
Property Let statement
Property Set statement
Sub statement
ByVal Call statement
Declare statement
Function statement
Property Get statement
Property Let statement
Property Set statement
Sub statement
Date Date data type
Date function
Date statement
Else If...Then...Else statement
Select Case statement
Empty Used as a Variant subtype that indicates an uninitialized variable value.
Error Error function
Error statement
On Error statement
False Has a value equal to 0.
For For...Next statement
For Each...Next statement
Open statement
Friend See Friend.
Get Get statement
Property Get statement
Input Input function
Input # statement
Line Input # statement
Open statement
Is If...Then...Else statement
Is operator
Select Case statement
Len Len function
Open statement
Let Let statement
Property Let statement
Lock Lock, Unlock statements
Open statement
Me See Me.
Mid Mid function
Mid statement
New Dim statement
Private statement
Public statement
Set statement
Static statement
Next For...Next statement
For Each...Next statement
On Error statement
Resume statement
Nothing See Nothing.
Null Used as a Variant subtype that indicates that a variable contains no valid data.
On On Error statement
On...GoSub statement
On...GoTo statement
Option Option Base statement
Option Compare statement
Option Explicit statement
Option Private statement
Optional Declare statement
Function statement
Property Get statement
Property Let statement
Property Set statement
Sub statement
ParamArray Declare statement
Function statement
Property Get statement
Property Let statement
Property Set statement
Sub statement
Print Print method
Print # statement
Private Const statement
Declare statement
Enum statement
Function statement
Option Private statement
Private statement
Property Get statement
Property Let statement
Property Set statement
Sub statement
Type statement
Property Property Get statement
Property Let statement
Property Set statement
PtrSafe See PtrSafe.
Public Const statement
Declare statement
Enum statement
Event statement
Function statement
Property Get statement
Property Let statement
Property Set statement
Public statement
Sub statement
Type statement
Resume On Error statement
Resume statement
Seek Seek function
Seek statement
Set Set statement
Property Set statement
Static Function statement
Property Get statement
Property Let statement
Property Set statement
Static statement
Sub statement
Step For...Next statement
For Each...Next statement
String String data type
String function
Then If...Then...Else directive
If...Then...Else statement
Time Time function
Time statement
To Dim statement
For...Next statement
Lock, Unlock statements
Private statement
Public statement
ReDim statement
Select Case statement
Static statement
Type statement
True Has a value equal to -1.
WithEvents Dim statement
Private statement
Public statement

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.