Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Cosmetics Capitals

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default Cosmetics Capitals

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default Cosmetics Capitals

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Cosmetics Capitals

"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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Cosmetics Capitals

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
All Capitals lostinformulas Excel Worksheet Functions 6 June 14th 06 08:07 PM
Sortng Problem with capitals Kal321 New Users to Excel 6 January 30th 06 10:01 PM
Text formatted as All Capitals? Joey New Users to Excel 6 June 2nd 05 12:23 AM
Text All Capitals Joey New Users to Excel 3 May 31st 05 11:54 PM
Change Capitals to Sentence Case do Excel Discussion (Misc queries) 2 March 29th 05 02:31 AM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"