What is VBA UCASE Function
how to use it
To use VBA's UCASE function you need to understand its syntax and arguments:
- String: The string value which you want to convert into upper case.
Example to use UCASE Function in VBA
To practically understand how to use VBA UCASE function, you need to go through the below example where we have written a vba code by using it:
Sub example_UCASE() Range("B1").Value = UCase(Range("A1")) End Sub
In the above code, we have used the UCASE to convert the text from the cell A1 into an upper case text and it has returned it in the cell B1 as EXCEL CHAMPS.
Below are some important points which you need to take care while using UCASE function in VBA.
- UCASE doesn’t make any changes in punctuation and numbers.
About the Author
Puneet is using Excel since his college days. He helped thousands of people to understand the power of the spreadsheets and learn Microsoft Excel. You can ﬁnd him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.