H
Help on formula
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.
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.