Returns for CStr

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

If expression is

CStr returns

Boolean

A string containing True or False

Date

A string containing a date in the short date format of your system

Null

A run-time error

Empty

A zero-length string ("")

Error

A string containing the word Error followed by the error number

Other numeric

A string containing the number

Show: