+ Reply to Thread
Results 1 to 4 of 4

Multiple Color Conditions

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Multiple Color Conditions

    The code below works perfect except I want to highlight other cells in the same row where the text in column D equals one of the item#s (eg, Item1, Item2, etc). So for example, at this point, if cell D10 equals Item4, then it will be color shaded whatever # 36 is on the Excel pallette. I want that to happen but to also have A10, B10, C10, E10, F10, - L10 shaded the same color (#36). Is there a simple code change I can make?
    Please Login or Register  to view this content.
    Last edited by dreicer_Jarr; 09-16-2010 at 03:55 PM.
    ______________________________________
    "Vision without Execution is a Hallucination"
    Edison

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Multiple Color Conditions

    Try this
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Multiple Color Conditions

    This did not work. I changed the line below to check and see if this worked too but nothing...ANY idea why it is not working?

    For Each oCell In Range("D3:D50")

    For Each oCell In Range("D3:L50")

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Multiple Color Conditions

    It works for me.

    Add a formlua to any cell, or change the value in the demo workbook cell A3.

    Perhaps you need the code in the sheets' change event if D3:D50 is not formula derived.
    Attached Files Attached Files

+ 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