VBA – UCase String
The UCase function in VBA converts all lowercase letters within a string to uppercase letters.
UCase
Syntax:
UCase(string)
Parameter:
Return Value:
Example
Dim str1 As String Dim upperCaseStr As String str1 = "Hello, World!" upperCaseStr = UCase(str1) ' upperCaseStr will be "HELLO, WORLD!"
Use Cases:
Key Considerations: