To use this macro, follow these steps:
Open the Microsoft Excel worksheet that contains the cell or cells with the text you want to convert to uppercase.
Press Alt+F11 to open the Visual Basic editor.
In the Project Explorer window on the left, expand the tree for your workbook and double-click on the sheet that contains the cell or cells you want to convert to uppercase.
In the code editor window on the right, paste the code from above.
To run the macro, press F5 or click on the Run button in the toolbar.
Select the cell or cells that you want to convert to uppercase, and the macro will convert the text in those cells to uppercase.
Note: If you want to use this macro on a regular basis, you can save it in your personal macro workbook so that it is available in all of your Excel workbooks. To do this, follow these steps: