Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.58 KB

miscellaneous-constants.md

File metadata and controls

34 lines (27 loc) · 1.58 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Miscellaneous constants
vblr6.chm1092146
vblr6.chm1092146
ef7f52d8-5707-c7db-ca47-e7eaec37276d
12/11/2018
medium

Miscellaneous constants

The following constants are defined in the Visual Basic for Applications type library and can be used anywhere in your code in place of the actual values.

Constant Equivalent Description
vbCrLf Chr(13) + Chr(10) Carriage return-linefeed combination
vbCr Chr(13) Carriage return character
vbLf Chr(10) Linefeed character
vbNewLine Chr(13) + Chr(10) or, on the Macintosh, Chr(13) Platform-specific new line character; whichever is appropriate for current platform
vbNullChar Chr(0) Character having value 0
vbNullString String having value 0 Not the same as a zero-length string (""); used for calling external procedures
vbObjectError -2147221504 User-defined error numbers should be greater than this value. For example:

Err.Raise Number = vbObjectError + 1000
vbTab Chr(9) Tab character
vbBack Chr(8) Backspace character
vbFormFeed Chr(12) Not useful in Microsoft Windows or on the Macintosh
vbVerticalTab Chr(11) Not useful in Microsoft Windows or on the Macintosh

See also

[!includeSupport and feedback]