UCase Function
Returns a string that has been converted to uppercase.
Syntax
UCase(string)
Remarks
The string argument is any valid string expression. Only lowercase letters are converted to uppercase; all uppercase letters and non-letter characters remain unchanged.
The following example uses the UCase
function to return an uppercase
version of a string:
Example 1:
Dim MyWord
MyWord = UCase("Hello World")
' Output: "HELLO WORLD".
Example 2:
Dim MyWord
MyWord = UCase("HELLO WORLD")
' Output: "HELLO WORLD".
Example 3:
Dim MyWord
MyWord = UCase("HELLO world 123")
' Output: "HELLO WORLD 123".