This will work for a specific sheet name and columns S and T.
Sub test()
Dim lastrow As String
lastrow = Sheets("YourSheetNameHere").Cells(Rows.Count, "B").End(xlUp).Row
Dim c As Range
For Each c In Sheets("YourSheetNameHere").Range("S1:T" & lastrow).Cells
'replace test1,test2 etc. with what you would like to replace the contents with
c.Value = Replace(c.Value, "…", "test1", 1, 1, vbTextCompare)
c.Value = Replace(c.Value, "\", "test2", 1, 1, vbTextCompare)
c.Value = Replace(c.Value, ".", "test3", 1, 1, vbTextCompare)
c.Value = Replace(c.Value, "*", "test4", 1, 1, vbTextCompare)
c.Value = Replace(c.Value, ",", "test5", 1, 1, vbTextCompare)
c.Value = Replace(c.Value, """", "test6", 1, 1, vbTextCompare)
Next
End Sub
I'm sorry, I would try and incorporate it into your code but I'm just not following your code. Sorry.
Bookmarks