This bit of code is to find either a ~C space or a ~P space and replace it w/ nothing.
The syntax is accepted, but the replace is failing to recognize the string and not performing the instructions. I also tried it w/ one "~" character as I am aware Excel needs this character to find special characters.
either way:
[vba]
Range("I6:I" & lrwTarget).Value = Range("Y6:Y" & lrwTarget).Value
WsT.Range("I6:I" & Range("Y" & Rows.Count).End(xlUp).Row).Select
Selection.Replace What:="~~? ", Replacement:=""
[/vba]
or
[vba]
Range("I6:I" & lrwTarget).Value = Range("Y6:Y" & lrwTarget).Value
WsT.Range("I6:I" & Range("Y" & Rows.Count).End(xlUp).Row).Replace What:="~~? ", Replacement:=""
[/vba]
An example of the string I am working w/ is:
~C BURTON 08 S. WHITE ASYM SNBJ RSL LG