+ Reply to Thread
Results 1 to 5 of 5

Link autofill in a cell to a dropdown box with conditional formatting for fill.

  1. #1
    Registered User
    Join Date
    10-29-2017
    Location
    Arizona
    MS-Off Ver
    MS Home office and Business 2010
    Posts
    2

    Link autofill in a cell to a dropdown box with conditional formatting for fill.

    Hi, I know how to link cell autofill using the view code function on virgin cells,

    However, when I add the dropdown feature I can't get it to work. My problem is this:

    When I dropdown a value in Colum "I", the data field will change color based on my selection.
    What I need is for the corresponding row in clolum A and B to also change color with coloum I.

    For instance:
    I make a selection from the dropdown in I4 and it turns Red, I need colum A and B to also turn red (no current formatting on A and B).

    Thanks for the help in advance.

    I have Kutools, but not very good with it.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Link autofill in a cell to a dropdown box with conditional formatting for fill.

    Hello,

    use a conditional formatting rule with a formula. Let that formula be

    =$I4="something"

    and let the format be red. With this formula you can apply the same rule to columns A and B, starting in row 4.

    Note the $ sign in front of the column letter I. This will lock in the I as the column to look at, even when the rule is copied to another column. If you use the built-in rules that apply formats based on a cell's value, these will only look at the current cell.

    cheers, teylyn

  3. #3
    Registered User
    Join Date
    10-29-2017
    Location
    Arizona
    MS-Off Ver
    MS Home office and Business 2010
    Posts
    2

    Re: Link autofill in a cell to a dropdown box with conditional formatting for fill.

    Hi thanks for the reply,

    I've tried this and it's not taking. I've also tried

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A2, B2").Interior.Color = Me.Range("I2").Interior.Color
    End Sub

    Nothing I try is linking the fill colors. =/

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Link autofill in a cell to a dropdown box with conditional formatting for fill.

    Wait, you never mentioned VBA. You have posted in the formulas and functions forum. My reply is for Conditional Formatting, which will be faster than re-inventing the wheel with VBA.

    "not taking" does not really help. Do you need help building the conditional format?

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Link autofill in a cell to a dropdown box with conditional formatting for fill.

    Here's a screenshot and a sample file. If that does not do what you need, please describe in more detail what you want to achieve and post a data sample.
    2017-10-31_8-39-19.png
    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)

Similar Threads

  1. Conditional Formatting - changing cell fill colour
    By Chamuit in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-05-2017, 03:03 PM
  2. [SOLVED] Issue with cell fill using conditional formatting rules
    By VB_kid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2016, 11:34 AM
  3. Replies: 21
    Last Post: 12-16-2015, 03:04 PM
  4. Fill color of cells with conditional formatting for more than 3 criterias
    By Sai Prashanth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2014, 03:58 PM
  5. [SOLVED] Conditional Formatting to Fill Cell
    By ISUCyclones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 01:33 PM
  6. Conditional Formatting to Auto Fill Cell
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2009, 06:18 PM
  7. Cell Formatting Conditional On Other Cells Fill Color?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2006, 12:25 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