+ Reply to Thread
Results 1 to 5 of 5

Mysterious characters I can't get rid of!

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Mysterious characters I can't get rid of!

    Hi All,

    Helping a friend at work with a macro, but am finding that there are some unprintable, unseen characters that appear after we load data into the spreadsheet that we can't seem to scrub.

    When I paste the string into MS Word, it looks like the attached. I'm not sure what those characters are, but I need to replace each one with a space (the number of spaces before the text in each cell is an important part of the macro.)

    So the question is, what are those characters, and how can I replace them with spaces?

    Thanks, as always, for any assistance.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by JP Romano; 05-18-2010 at 12:42 PM. Reason: SOLVED!

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Mysterious characters I can't get rid of!

    a sheet would be useful here, the characters are probably control characters, we can identify them and give a solution from a posted sheet!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Mysterious characters I can't get rid of!

    Try using the CODE function to return the character code

    =CODE(A1)

    then try using the SUBSTITUTE function to replace the character with spaces

    =SUBSTITUTE(A1,CHAR(126)," ")
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Mysterious characters I can't get rid of!

    Okay, I added the file (help.xls).
    Will also check out Palmetto's suggestion...
    THANKS

  5. #5
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Mysterious characters I can't get rid of!

    Yep, that did it... thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1