+ Reply to Thread
Results 1 to 5 of 5

Macro to fill the color in particular cell

  1. #1
    Registered User
    Join Date
    03-24-2012
    Location
    Cochin, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Thumbs up Macro to fill the color in particular cell

    Hi Peers,

    I have data in the columns A,B,C and D of 'Orders' Spreadsheet. The Column D is ‘Order Type’. I have made a drop down list in this column D where 3 options are available i.e UPDATE,FULL SEARCH & REGULAR . If I select REGULAR from this list the cells in that particular raw in the columns A,B& C should be filled with Green color .And in the next raw if I select FULL SEARCH the cells in that particular raw of columns A,B & C should be filled with Red color.

    I need your help to create a macro for this requirement.

    Thanks in advance....

    JT

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Macro to fill the color in particular cell

    Use conditional formatting on columns A - C, using as a condition, D="x", where x is the value from the dropdown list. For instance, for row 1:

    =D1="Regular"

    would be the condition formula and select green for the fill color.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-24-2012
    Location
    Cochin, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro to fill the color in particular cell

    Hi Ben,

    I am not so well versed with Macros , could you please help me with complete code of macro for this?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Macro to fill the color in particular cell

    Conditional Formatting (CF) does not require macros. It is done from the worksheets.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-24-2012
    Location
    Cochin, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro to fill the color in particular cell

    A bunch of thanks ProtonLeah.....It really helped..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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