LCase

Returns a String that has been converted to lowercase.

Syntax: LCase$( string ), LCase( string )

string
required Any valid string expression. If string contains Null, Null is returned.

The $-suffixed form returns a String; the unsuffixed form returns a Variant (String).

Only uppercase letters are converted to lowercase; all lowercase letters and nonletter characters remain unchanged.

Common Errors

Error When
94 (&H5E), Invalid use of Null LCase$ is given a string that is Null

Example

This example uses the LCase function to return a lowercase version of a string.

Dim UpperCase, LowerCase
UpperCase = "Hello World 1234"    ' String to convert.
LowerCase = LCase(UpperCase)      ' Returns "hello world 1234".

See Also