Share via


VBA Constants for Visual Basic 6.0 Users

The following table shows the Microsoft Visual Basic for Applications (VBA) constants for Visual Basic 6.0 and their Visual Basic 2008 equivalents.

Note

For backward compatibility, the Visual Basic 6.0 VBA constants can also be used in Visual Basic 2008.

Visual Basic 6.0

Visual Basic 2008 Equivalent

vbBack

ControlChars.Back

vbCr

ControlChars.Cr

vbCrLf

ControlChars.CrLf

vbFormFeed

ControlChars.FormFeed

vbLf

ControlChars.Lf

vbNewLine

ControlChars.NewLine

vbNullChar

ControlChars.NullChar

vbNullString

Nothing keyword

vbObjectError

vbObjectError

vbTab

ControlChars.Tab

See Also

Other Resources

Constant Equivalents for Visual Basic 6.0 Users

Constants and Enumerations in Visual Basic