i have 6000 rows in my range, i want to add a comma to the 7 character location from end.
i have this formula that i tested in a single cell and it works BUT when I try to apply it to the entire range using a With Range, the syntax is off (get mismatch error) can anyone assist with proper syntax
the formula is. Take the left most characters - last 6, then add a comma, then add back the last 6 characters.
i have this formula that i tested in a single cell and it works BUT when I try to apply it to the entire range using a With Range, the syntax is off (get mismatch error) can anyone assist with proper syntax
the formula is. Take the left most characters - last 6, then add a comma, then add back the last 6 characters.
Code:
set Rng = range("a1:a6000"
With Rng
.Value = Left(.Value, Len(Rng) - 6) & "," & Right(Rng, 6)
End With