A resource for users and developers of Microsoft Excel |
|||||||||
| Email us your FAQ suggestion. |
|||||||||
Visit often ! Pages are updated daily. |
|||||||||
This is the Excel "How to" Frequently Asked Questions page |
|||||||||
Answers to Frequently Asked Questions about how to do common tasks in Microsoft Excel. |
|||||||||
Excel "How to" FAQs |
| How to force letters to be UPPER CASE? |
| Example |
You are entering text values in a range and you want them to be displayed in upper case as they are entered. You cannot count on users always having the Caps Lock set to upper case.
|
| Format |
These fonts will show character letters in upper case. Remember, formatting a cell only affects what you see. The actual value in the cell will be what was entered, which might still be lower case character letters. If you think the font appearance is worth the trade-off of no involvement by Data Validation or VBA, here are the font styles: Algerian
|
| Manual |
Data Validation can be applied to the cells, for example range A1:A10, so only upper case letters are allowed. Select range A1:A10 and then... In Excel version 2003 or before: In Excel version 2007: In the Data Validation dialog where you would be now, from the Allow drop down list, select Custom.
|
| VBA |
A Worksheet_Change event can also accomplish this, still with the example of range A1:A10. Right click on your sheet tab, left click on View Code, and paste the following procedure into the large white area that is the worksheet module. Press Alt+Q to return to the worksheet. Private Sub Worksheet_Change(ByVal Target As Range)
|