Sub Name_Changer()
'
' Macro1 Macro
'
'
' Initialize Macro
CAPCONSTANT = 10
Range("B1").FormulaR1C1 = "Len"
Range("B2").FormulaR1C1 = "=LEN(RC[-1])"
Range("A1").End(xlDown).Offset(0, 1).Value = "d"
Range("B2").Select
Selection.Copy
Range(Selection, Selection.End(xlDown)).Select
ActiveSheet.Paste
Range("C2").Select
'Main loop
Do While ActiveCell.Column <> 2
nameLen = Range("B2").Value
'Separates out each letter of name, then checks for upper casing. If it
'finds it, adds an empty cell
For x = 1 To nameLen
ActiveCell.FormulaR1C1 = "=MID(RC1," & x & ",1)"
ActiveCell.Offset(0, 1).Select
Next x
ActiveCell.Offset(0, -1).Select
ActiveCell.End(xlToLeft).Offset(0, 3).Select
For x = 1 To nameLen
If ActiveCell.Value = (UCase(ActiveCell.Value)) Then
Range(ActiveCell, ActiveCell.Offset(0, nameLen)).Select
Selection.Cut
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
ActiveCell.Offset(0, -1).Value = " "
ActiveCell.Offset(0, 1).Select
Else
ActiveCell.Offset(0, 1).Select
End If
Next x
ActiveCell.Offset(1, 0).End(xlToLeft).Offset(0, 1).Select
Loop
Range("C2").Select
Do While ActiveCell.Value <> ""
Name = ""
nameLen = ActiveCell.Offset(0, -1).Value
For x = 1 To (nameLen + CAPCONSTANT)
Name = Name + ActiveCell.Value
ActiveCell.Offset(0, 1).Select
Next x
ActiveCell.Offset(1, 0).Select
xrow = ActiveCell.Row
Cells(xrow, 3).Select
Loop
Cells(2, 3).Select
Do While ActiveCell.Value <> ""
Name = ""
nameLen = ActiveCell.Offset(0, -1).Value
For x = 1 To (nameLen + CAPCONSTANT)
Name = Name + ActiveCell.Value
ActiveCell.Offset(0, 1).Select
Next x
Cells(ActiveCell.Row, 1).Value = Name
ActiveCell.Offset(1, 0).Select
Cells(ActiveCell.Row, 3).Select
Loop
Range("B1:ZZ10000").ClearContents
End Sub