UCase Function Description
The VBA UCase function converts a string to upper-case. All lower-case letters are converted to upper-case.
Use LCase to convert a string to upper-case letters instead.
Syntax
The syntax for the UCase function in VBA is:
1 | UCase( text ) |
Parameters
text
The text string that you wish to convert to upper-case letters.
Example usage
The UCase function can only be used in VBA code. Let’s look at some VBA UCase function examples:
1 2 3 4 5 | UCase "Hello There!" 'Result: "HELLO THERE!" UCase "wow" 'Result: "WOW" |