(You may need to first open the VBAProject folder, and then open the Microsoft Excel Objects folder under it.)
Display the VBA Editor by pressing Alt+F11.Private Sub Worksheet_Change(ByVal Target As Range)įor the macro to work, however, it must be entered in a specific place. The following macro can be used to convert all worksheet input to uppercase: When programming in VBA, you can force Excel to run a particular macro whenever anything is changed in a worksheet cell. Instead, you must use a macro to do the changing for you. For instance, if someone enters information in cell B6, then the worksheet function can't be used for converting the information in B6 to uppercase. Excel provides a worksheet function that allows you to convert information to uppercase, but it doesn't apply as people are actually entering information. If you are developing a worksheet for others to use, you may want them to always enter information in uppercase.