I have a VB script as follows:
How can I write loop for this:-
Sub format()
Dim X As Variant
X = range("M1")
X = Replace(X, "-", "", 1)
'The next line puts the cleaned up data back in J1
range("M1") = X
End Sub
Thank you all for your previous answers.