LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Capital letters in names written by lower case

Right click on the sheet tab, select view code, then paste in code like this

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo ErrHandler
If Target.Count = 1 And Target.Column = 3 Then
Application.EnableEvents = False
sStr = Target.Value
Target.Value = UCase(Left(sStr, 1)) & LCase( _
Mid(sStr, 2))
End If
ErrHandler:
Application.EnableEvents = True
End Sub

Change 3 to the column where you want this to occur.

--
Regards,
Tom Ogilvy

"vv" <microsoft.public.cs.desktop wrote in message
...
I am writing names very often. It would be nice to write them with lower
case. Of course I need first letter of name Capital immediately after
leaving cell by TAB key. Is it possible to do it some way? Many thanks for
help. Excel and English beginner Vladi from Prague.




 
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
can I change the cap letters of student names to lower case user Excel Discussion (Misc queries) 2 May 28th 10 01:42 AM
conditional formatting - highlight Capital letters but not lower c elaine1 Excel Discussion (Misc queries) 1 March 24th 10 09:49 AM
How do I force all capital in a column of lower case names? Dean-Xceldata New Users to Excel 7 February 15th 07 02:42 PM
How to change lower to upper case letters? Sigi Rindler Excel Discussion (Misc queries) 1 November 25th 06 09:33 AM
detect upper and lower case letters mike allen[_2_] Excel Programming 3 June 5th 04 04:58 PM


All times are GMT +1. The time now is 10:51 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"