Skip to main content
Previous section

String Constants

These constants are always available.

Predefined Constants

The following string constants can be used anywhere in your code in place of actual values:

Constant Value Description
vbCr Chr(13) Carriage return
vbCrLf Chr(13) & Chr(10) Carriage return–linefeed combination
vbFormFeed Chr(12) Form feed
vbLf Chr(10) Line feed
vbNewLine
Chr(13) & Chr(10)
or
Chr(10)
Platform-specific newline character; whatever is appropriate for the platform
vbNullChar Chr(0) Character having the value 0
vbNullString String having value 0 Not the same as a zero-length string (""); used for calling external procedures
vbTab Chr(9) Horizontal tab
vbVerticalTab Chr(11) Vertical tab