View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Help on formula[_2_] Help on formula[_2_] is offline
external usenet poster
 
Posts: 10
Default How can this Micro customized. Please help

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.