+ Reply to Thread
Results 1 to 7 of 7

Macro to highlight a cell that has special charcters and symbol

  1. #1
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Macro to highlight a cell that has special charcters and symbol

    Hi Gurus,

    I have a column of text that has numbers, text and combination of text and numbers, symbols and special chars. i need a macro to highlight a cell only if it has a symbol or special character.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to highlight a cell that has special charcters and symbol

    Any hint on what those symbols or special characters are? Or should we guess.

  3. #3
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: Macro to highlight a cell that has special charcters and symbol

    other than text and numbers

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to highlight a cell that has special charcters and symbol

    I hope you understand how many different types of symbols and special characters there are out there. To have a code look at each one would be a tremendous undertaking. Even if you were to test each character against all 26 letters of the alphabet, 10 numbers, and space/comma/period/apostraphe it would be cumbersome. There may be some way to do it with RegEx but I still think it would be a lengthy process.

    I wish you the best of luck in finding a solution to your problem.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to highlight a cell that has special charcters and symbol

    Maybe:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to highlight a cell that has special charcters and symbol

    @ John. I was thinking something along the same lines. Can I ask why you chose to create a function rather than encapsulate it all within the subroutine? Also, is the code time consuming when run against a large range (for future knowledge)?

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to highlight a cell that has special charcters and symbol

    @ stnkynts - I didn't write the AlphaNumeric Function, I chose one from many by googling. I got it from here: http://www.techonthenet.com/excel/fo...phanumeric.php. I only tested it on a small sample, so I don't know how efficient it would be on a large range.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 14
    Last Post: 10-30-2014, 02:38 PM
  2. Trying to highlight a cell if another cell contains a specific symbol...
    By GrebGoneBad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2014, 01:15 PM
  3. [SOLVED] Question regarding adding a special keyboard symbol in a vba drop down list
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 05:55 PM
  4. find cells in a range that contain '-' symbol and highlight then them
    By pavlos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 12:28 AM
  5. [SOLVED] Trim special charcters from start of string
    By John Michl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2006, 05:45 PM

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