Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub Names()
For Each cll In Intersect(ActiveSheet.UsedRange, Columns("A:B")) If Len(cll.Value) < 4 And cll.Value < "" Then cll.Value = Left(cll.Value & ",,,,", 4) cll.Value = UCase(cll.Value) Next cll End Sub This is an old micro which works perfectly. I need help to make two changes into it. 1. Column A and B are text column for names, instead of capital letters I want those column in sentence case i.e. ANDREW into Andrew. (Everything else should stay the same, comas to make it four if characters are less than four) 2. Column C which is also a text column for names, I wan it to be capitalized once I press the €œName Correction€ micro. Any help to customize the above micro for this purpose will be greatly appreciated. I thank you for considerations in regard. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Micro | Excel Worksheet Functions | |||
Micro-Soft Pop-Ups | Excel Discussion (Misc queries) | |||
How do i run a micro from a formula | Excel Discussion (Misc queries) | |||
Micro | Excel Worksheet Functions | |||
what does the micro do | New Users to Excel |