unanble to replace wierd symbols from a text file

Brucea

New Member
Joined
May 25, 2007
Messages
40
I am brining in data to excel from a text file. I have no control over the contents of the text files since it comes from many different sources. I am getting the symbols below. They are suposed to be Feet ' and Inches" but are coming through as shown below.
SERENGETI 13╞2÷ö

I put in a find and replace routine which replaces all of them fine except the ╞ symbol. when I try to paste it into my code, it turns into a question mark. Is there some other way to change or eliminate these symbols without going back to the text file?
Thanks in advance for any help!!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
try this
Code:
Sub ctrim()
Range("E1:E200").Replace What:=Chr(63), Replacement:="Ft", LookAt:=xlPart
End Sub
change range to match your data
 
Upvote 0
Thanks, I will give that a try. Is there a place where can I find a chart/list showing all of the characters and symbols?
Thanks again for the help.
 
Upvote 0
If you installed all of the systems tools with your operating system, there is a character map program. Otherwise you could google and I'm sure you would find something. :wink:
 
Upvote 0

Forum statistics

Threads
1,214,818
Messages
6,121,725
Members
449,049
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top