Table of contents
TOC
Collapse the table of content
Expand the table of content

UCase Function

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns a Variant ( String ) containing the specified string, converted to uppercase. SyntaxUCase ( string ) The required stringargument is any validstring expression. If string containsNull, Null is returned. Remarks Only lowercase letters are converted to uppercase; all uppercase letters and nonletter characters remain unchanged.

Example

This example uses the UCase function to return an uppercase version of a string.

Dim LowerCase, UpperCase
LowerCase = "Hello World 1234"    ' String to convert.
UpperCase = UCase(LowerCase)    ' Returns "HELLO WORLD 1234".
© 2017 Microsoft