Remove ALL commas
//Warning watch out for CSV file type data
Sub WsReplaceLooseCommas()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Cells.SpecialCells(xlCellTypeConstants, 2). _
Replace What:=",", Replacement:=" ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Next ws
End Sub
Sub WsReplaceLooseCommas()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Cells.SpecialCells(xlCellTypeConstants, 2). _
Replace What:=",", Replacement:=" ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Next ws
End Sub
Comments
Post a Comment