1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel display char(160) as ?

Discussion in 'Business Applications' started by Garf13LD, Jun 17, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. Garf13LD

    Garf13LD Thread Starter

    Joined:
    Apr 17, 2012
    Messages:
    455
    My home pc is using china chinese as system locale.
    I need to find and replace char(160) in excel.
    It gives me ? and wipe everything clean in my sheet.
    Any solution?
    btw using win7 with office 2010
     
  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    5,946
  3. Garf13LD

    Garf13LD Thread Starter

    Joined:
    Apr 17, 2012
    Messages:
    455
    I got the temp solution to freeze the code.
    if chr(160)="?" then
    "do nothing"
    else
    .Replace What:=Chr(160), Replacement:="", LookAt:=xlPart
    end if
     
  4. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    5,946
    I don't think a sample will work here but I could try, we have a 'Chinese' environment at work.
     
  5. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    5,946
    I don't think you have to eplicitly select Chr(160) but putthat character in a one lenght string

    replace(yourstring,mid(yourstring,x,1),"") where x is the position of that particular character.

    Is this an idea?
     
  6. Garf13LD

    Garf13LD Thread Starter

    Joined:
    Apr 17, 2012
    Messages:
    455
    the system detect it as 32, so I guess I can do a trim as the original data is from website.
    Or I don't try to bring my work home. lol
     
  7. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    5,946
    I think the last option is good. I generally do go on at home :)
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1057424