+ Reply to Thread
Results 1 to 2 of 2

Highlight Illegal or Non Printing Characters

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Rainbow Island, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Highlight Illegal or Non Printing Characters

    Hello, I have data from uncontrolled sources which contains non printing characters. I can't use the clean option because the data is too inconsistent. It seems the most common problem is the user hitting alt+enter rather than using word wrap to stack lines in a cell.

    The best case scenario is to have the characters highlighted so I can see them and edit as needed. I'm not sure which method is best to accomplish this so I posted it in the general area.

    Thanks for any help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Highlight Illegal or Non Printing Characters

    Hi Coleslaw and welcome to the forum

    Have you tried to use the substitute() and trim() functions? You may have to do it a few times to get them all, use the char() function for "invisible" characters, find the number by using code()

    char(13) = alt enter
    char(10) = |
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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