Tim Hanson
Member
Can this be changed to remove a list of characters? often I am having to call it 2 or 3 times with different characters that I need to remove.
Thanks
Thanks
Code:
Sub RemoveChar()
Const char As String * 1 = "]" 'change to suit
Dim LR As Long, i As Long, x As Variant
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With Range("I" & i)
x = Split(.Value)
x(UBound(x)) = Replace(x(UBound(x)), char, vbNullString)
.Value = Join(x)
End With
Next i
End Sub