indi visual
Member
The following code finds the last appearance of "8" and deletes it, I was having trouble with modifying this code to find the last appearance of "8" and replacing it with "8}" instead. Also if I could get help with modifying the set range of this to search an entire column with an unknown length as well.
Dim c As Range
Set c = Range("A17")
For iCt = Len(c) To 1 Step -1
If Mid(c, iCt, 1) = "8" Then
c = Left(c, iCt - 1)
Exit For
End If
Next iCt
Dim c As Range
Set c = Range("A17")
For iCt = Len(c) To 1 Step -1
If Mid(c, iCt, 1) = "8" Then
c = Left(c, iCt - 1)
Exit For
End If
Next iCt