Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi There,
Can anybody help me how to change the first letter of my item description into a capital letter, in a macro, I have more that 5000 item description that I have to be changed the first letter into a Caps so that when I sort them it will go together. It is time consuming to change it one by one. Like company to Company, name to Name, etc. Thanks for your help. Eric |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Eric
See David's site http://www.mvps.org/dmcritchie/excel/proper.htm -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "Eric" wrote in message ... Hi There, Can anybody help me how to change the first letter of my item description into a capital letter, in a macro, I have more that 5000 item description that I have to be changed the first letter into a Caps so that when I sort them it will go together. It is time consuming to change it one by one. Like company to Company, name to Name, etc. Thanks for your help. Eric |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you can loop the data so it will fit your layout but I would use
something like Dim strTemp As String Dim i As Integer i = 0 Do Until Trim(Range("A1").Offset(i, 0).Value) = "" strTemp = Trim(Range("A1").Offset(i, 0).Value) strTemp = Left(UCase(strTemp), 1) & Right(strTemp, Len(strTemp) - 1) Range("A1").Offset(i, 0).Value = strTemp i = i + 1 Loop Keith www.kjtfs.com --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change first letter of every word to Capital | Excel Discussion (Misc queries) | |||
Find Capital Letter | Excel Worksheet Functions | |||
New Validation option to format 1st letter as Capital letter | Excel Discussion (Misc queries) | |||
Default Capital letter for 1st letter of a word | Excel Discussion (Misc queries) | |||
Turn to capital letter | Excel Discussion (Misc queries) |