Sub prac()
Dim x As String, a As Long, lastrow As Long, i As Long
Dim xcell As String
x = "-"
a = 1
lastrow = Worksheets("Sheet1").UsedRange.Rows.Count + 1
For i = a To lastrow
xcell = Worksheets("Sheet1").Range("A" & i)
If InStr(1, xcell, "") > 0 Then
Worksheets("Sheet1").Range("A" & i) = Replace(xcell, " ", x)
End If
Next i
End Sub
Worksheets("Sheet1").Range("A" & i) = Replace(xcell, " ", x)
xcell = Replace(xcell, ".", x)
xcell = Replace(xcell, ",", x)
xcell = Replace(xcell, "(", x)
xcell = Replace(xcell, ")", x)
xcell = Replace(xcell, " ", x)
Worksheets("Sheet1").Range("A" & i) = xcell