Macro to Use "Proper" function on column of all cap text
Posted by Dwight on March 16, 2001 6:56 AM
Trying to automate conversion of long columns of all cap text (usually proper names)to more natural looking 1st letter caps using the "Proper" function. Recorded following macro to be run after selecting a column, but can't figure out how to make it useful for any column instead of the specific column ("A") I used to record the macro.
Can you help?
Selection.Insert Shift:=xlToRight
Selection.FormulaR1C1 = "=PROPER(RC[1])"
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Paste
Application.CutCopyMode = False
Columns("B:B").Select
Selection.Delete Shift:=xlToLeft
Selection.End(xlUp).Select
Range("A1").Select