I have a macro that will go through and check for Bad/Unwanted data or characters and replaces them with Good. I have come across an instance with the character ⅜ - CODE says its 63 which is a Question Mark ( ? ). Took me a while to figure it out as when I ran my code and it changed everything to the ( -3/8 ). I have done this with success for ¼, ½, ¾, ©, ®, etc... At a loss and hoping to get some guidance or suggestions on this.
This is how I have my code laid out. Meant to compile all my arrays into 1 looping through instead of copy+pasting.
This is how I have my code laid out. Meant to compile all my arrays into 1 looping through instead of copy+pasting.
Code:
array1 = Array("⅜")
array[B]...[/B]
arrayreplace = Array("-3/8", [B]...[/B] )
arrayCOMPILE = Array(array1, array[B]...[/B])
For HOSTARRAY = LBound(arrayCOMPILE) To UBound(arrayCOMPILE)
For lngDATA = LBound(arrayCOMPILE(HOSTARRAY)) To UBound(arrayCOMPILE(HOSTARRAY))
strpass = arrayCOMPILE(HOSTARRAY)(lngDATA)
FindHiLight strpass
Selection.Replace what:=arrayCOMPILE(HOSTARRAY)(lngDATA), Replacement:=arrayreplace(HOSTARRAY), _
LookAt:=xlPart, SearchOrder:=xlByRows
Next
Next