Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just for cosmetic purposes is there anyway to set the input on a cell so that
no matter how something is entered it shows as a capital. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry, I meant Worksheet_Change event.
-- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "Arlene" wrote: Just for cosmetic purposes is there anyway to set the input on a cell so that no matter how something is entered it shows as a capital. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You would need a Selection_Change event in VBA to capture that. Search the NG
for code, it's often posted. -- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "Arlene" wrote: Just for cosmetic purposes is there anyway to set the input on a cell so that no matter how something is entered it shows as a capital. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Cosmetics"
All caps would look horrible to me and make things hard to read but.... This event code will do the trick. Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column 8 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula = UCase(Target.Formula) ErrHandler: Application.EnableEvents = True End Sub Works on columns A:H........change the 8 to whatever you wish. Right-click on the sheet tab and "View Code" Copy/paste the code into that sheet module. Close the VBE and save the workbook. Gord Dibben MS Excel MVP On Thu, 12 Jul 2007 15:18:01 -0700, Arlene wrote: Just for cosmetic purposes is there anyway to set the input on a cell so that no matter how something is entered it shows as a capital. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Gord; the all caps is for a specific input cell, the thing described
is done with caps. Thanks for the problem solve, I really did not think it could be done. "Gord Dibben" wrote: "Cosmetics" All caps would look horrible to me and make things hard to read but.... This event code will do the trick. Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column 8 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula = UCase(Target.Formula) ErrHandler: Application.EnableEvents = True End Sub Works on columns A:H........change the 8 to whatever you wish. Right-click on the sheet tab and "View Code" Copy/paste the code into that sheet module. Close the VBE and save the workbook. Gord Dibben MS Excel MVP On Thu, 12 Jul 2007 15:18:01 -0700, Arlene wrote: Just for cosmetic purposes is there anyway to set the input on a cell so that no matter how something is entered it shows as a capital. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
All Capitals | Excel Worksheet Functions | |||
Sortng Problem with capitals | New Users to Excel | |||
Text formatted as All Capitals? | New Users to Excel | |||
Text All Capitals | New Users to Excel | |||
Change Capitals to Sentence Case | Excel Discussion (Misc queries) |