+ Reply to Thread
Results 1 to 4 of 4

Issue with cell fill using conditional formatting rules

  1. #1
    Registered User
    Join Date
    06-06-2016
    Location
    US
    MS-Off Ver
    2010
    Posts
    15

    Issue with cell fill using conditional formatting rules

    excel 2010

    this is odd.
    i create some formatting rules to color fill cells in 1st sheet column A
    example: create a formatting rule based on formula =MATCH(A1,Sheet1!$A:$A,0) then select a fill color

    when i pull .Interior.ColorIndex from the cells i get 0

    but if i then use the std fill from Font palette it works fine.

    why is this?

  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
    52,936

    Re: Issue with cell fill using conditional formatting rules

    CF is not "real" formatting, unlike regular formatting, it kinda "floats above" the cell, and formulas etc do not "see" it
    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

  3. #3
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: Issue with cell fill using conditional formatting rules

    try this
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-06-2016
    Location
    US
    MS-Off Ver
    2010
    Posts
    15

    Re: Issue with cell fill using conditional formatting rules

    Quote Originally Posted by Patronus View Post
    try this
    Please Login or Register  to view this content.
    hmmm, does this use a different set of color numbers? i ask because after recording macro for conditional formatting with fill, it uses FormatConditions(1).Interior.Color
    but red is .Color=255
    but using real fill, red is Interior.ColorIndex=3

    why multiple properties for the same thing?

    EDIT:
    ok, even though the CF adds color using integers, the .DisplayFormat.Interior.ColorIndex does grab index #, so i am good.
    Last edited by VB_kid; 06-08-2016 at 03:29 PM. Reason: more info

+ 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] Conditional Formatting - creating rules based on colours in cell list
    By milkychips in forum Excel General
    Replies: 5
    Last Post: 01-02-2016, 12:00 PM
  2. Conditional Formatting two rules
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 11-21-2014, 11:15 AM
  3. conditional formatting rules for a cell on sheet 1 based on rules from sheet 2
    By jsard in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 08-15-2013, 09:22 AM
  4. [SOLVED] Conditional Formatting: Comparing cell with a column of values and applying 3 rules
    By ab231 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2013, 10:30 AM
  5. Replies: 1
    Last Post: 06-21-2013, 04:20 PM
  6. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 PM
  7. Replies: 2
    Last Post: 06-08-2012, 05:47 AM

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