Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how do i always have upper case letters in some cells and not others
when I click on that cell |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Clicking in a cell will not change the case of the string in a cell.
You could use some double-click event code if that's what you're thinking of. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _ Cancel As Boolean) If Target.Column 3 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula = UCase(Target.Formula) Cancel = True ErrHandler: Application.EnableEvents = True End Sub Or you could have the Upper case added as you type in the cell. No doubleclick involved. Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column 3 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula = UCase(Target.Formula) ErrHandler: Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Tue, 6 May 2008 13:33:57 -0700 (PDT), duckie wrote: how do i always have upper case letters in some cells and not others when I click on that cell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In excel can you change words from all caps to initial caps? | Excel Discussion (Misc queries) | |||
Help?! Format Cells for ALL CAPS | Excel Discussion (Misc queries) | |||
How can I convert all Caps to first letter caps in Excel? | Excel Worksheet Functions | |||
excel sheet all caps and needs to be only the first letter caps.. | Excel Discussion (Misc queries) | |||
Can i setup cells to only accept caps | Excel Programming |