Visual Basic for Applications Reference

UCase Function

See Also    Example    Specifics

Returns a Variant (String) containing the specified string, converted to uppercase.

Syntax

UCase(string)

The required stringargument is any valid string expression. If string contains Null, Null is returned.

Remarks

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