+ Reply to Thread
Results 1 to 6 of 6

Change Interior color

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Raleigh, NC
    MS-Off Ver
    2010
    Posts
    16

    Change Interior color

    I have a bunch of cells that are a myriad of different colors. I basically want to select two colors and everything that isn't one of those two colors needs to be no fill. I wrote something but it's not exactly working. here's what I've got

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Change Interior color

    Try:
    Please Login or Register  to view this content.
    because you want to change colors which are neither rev like nor room like
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-03-2015
    Location
    Raleigh, NC
    MS-Off Ver
    2010
    Posts
    16

    Re: Change Interior color

    Quote Originally Posted by Kaper View Post
    Try:
    Please Login or Register  to view this content.
    because you want to change colors which are neither rev like nor room like
    I don't quite understand what you're saying. Mind elaborating?

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Change Interior color

    IMHO you do wrong trying to test if a<>c1 or a<>c2
    because (provided that c1<>c2) if a is equal to either of C1, c2, then is different than second one, so
    Please Login or Register  to view this content.
    is always executed.

  5. #5
    Registered User
    Join Date
    02-03-2015
    Location
    Raleigh, NC
    MS-Off Ver
    2010
    Posts
    16

    Re: Change Interior color

    Makes sense. That worked perfectly. Thanks!

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Change Interior color

    Glad to hear that,
    If that takes care of your original question, please mark this thread as SOLVED
    Thanks.

+ 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. [SOLVED] Capture Interior Color of Conditionally Formatted Cell on Selection Change
    By daffodil11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2015, 04:31 PM
  2. Change interior.color index in FOR
    By isaackoh in forum Excel General
    Replies: 3
    Last Post: 04-16-2014, 10:08 AM
  3. Find a duplicate and then use the duplicates interior.color to change cell color.
    By bopsgtir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2012, 03:54 PM
  4. "If" and Syntax to change font and fill (interior) color based on cell value
    By jdfjab in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-17-2012, 10:29 AM
  5. Change cell's interior color and font
    By tim5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2011, 06:21 AM
  6. Change Interior Color using Cell Value
    By PY_ in forum Excel General
    Replies: 4
    Last Post: 03-23-2011, 01:05 PM
  7. [SOLVED] Change the interior color of a cell - Code Review
    By Tiny Tim in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2005, 05:55 PM

Tags for this Thread

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