![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Scotland
Posts: 341
|
This is probably very easy to you guys
how do I format cells so that when letters are keyed in - they automatically go into upper case...... ) |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
I think you would need to use VBA to accomplish that. Right click on the sheet tab, click View Code and enter the following:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("a1").Value = UCase(Range("a1").Value) End Sub Where A1 is the cell you would like to capitalize.
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
You can put the following code in the Worksheet declarations:
Private Sub Worksheet_Change(ByVal Target As Range) If Target <> "" Then Target = UCase(Target) End Sub This will work for all cells on the worksheet.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Scotland
Posts: 341
|
Thanks
trevor |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|