[table="width: 500"]
[tr]
[td]Sub RemoveSpecialCharacters()
Dim R As Long, C As Long, X As Long, Data As Variant
Data = Range("A2", Cells(Rows.Count, "F").End(xlUp))
For R = 1 To UBound(Data, 1)
For C = 1 To UBound(Data, 2)
For X = 1 To Len(Data(R, C))
If Mid(Data(R, C), X, 1) Like "[!0-9A-Za-z]" Then Mid(Data(R, C), X) = " "
Next
If Data(R, C) Like "*#* *#* *#* *#*" Then
Data(R, C) = Replace(Application.Trim(Data(R, C)), " ", ".")
Else
Data(R, C) = Replace(Data(R, C), " ", "")
If Len(Data(R, C)) Then Data(R, C) = Format$(Application.Replace(Data(R, C), 4, 0, "."), "0.000")
End If
Next
Next
Application.ScreenUpdating = False
Application.ReplaceFormat.Clear
Application.ReplaceFormat.Interior.Color = xlNone
With Range("A2").Resize(UBound(Data, 1), UBound(Data, 2))
.Interior.Color = vbRed
.NumberFormat = "@"
.Value = Data
.Font.Name = "Calibri"
.Font.Size = 12
.Replace "???.???", "", xlWhole, , , , False, True
.NumberFormat = "General"
.Value = .Value
.NumberFormat = "0.000"
.SpecialCells(xlConstants, xlTextValues).Interior.Color = vbRed
End With
Application.ReplaceFormat.Clear
Application.ScreenUpdating = True
End Sub[/td]
[/tr]
[/table]