+ Reply to Thread
Results 1 to 6 of 6

Highlight cells

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Highlight cells

    What is wrong with this code? I need the highlight all the cells in the range that have the value of "N" when I select the option button.

    HTML Code: 

  2. #2
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: Highlight cells

    At a first glance, your color number looks a little off?

    Try stepping through the code (F8) to see if the code within the second 'if' statement ever triggers. If it does, then I'll go with the 'color' issue. Otherwise, let me know and I will look deeper.

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

    Re: Highlight cells

    Try:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Highlight cells

    Nothing happens. No errors. I got the color code by recording the one I want and than tried to add that code to this code.

  5. #5
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Highlight cells

    Nice... That worked John

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

    Re: Highlight cells

    Glad to help out and thanks for the feedback.

+ 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. Highlight cells for data entry but print workbook with no highlighted cells
    By kheino1111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2014, 06:51 AM
  2. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  3. Replies: 4
    Last Post: 01-03-2013, 12:25 AM
  4. Replies: 2
    Last Post: 10-24-2012, 11:47 AM
  5. Replies: 5
    Last Post: 05-27-2005, 02:05 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