+ Reply to Thread
Results 1 to 9 of 9

Color Entire Row

  1. #1
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Color Entire Row

    Looking for a macro that will add color to an entire row based upon Column C.

    I have attached an example, Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Color Entire Row

    Hello hftechno,

    Why not just use Conditional Formatting? If you save your Workbook with a .xlsx extension instead of .xls, it would be a quick an easy solution.

    In the Attached sample Workbook, I have done just that, and used the range up to Column W. If you do need the Entire Rows to be filled, just change the "W" in the Conditional Formatting Formula to "XFD".

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Color Entire Row

    Sorry meant to upload as xlsx (thanks)

    I do not see any directions in the sheet regarding what conditions you used to bring about the colors?
    I am looking for a macro because this is not a static sheet.

    Next month I could have 20 sections that would need 20 distinct colors will your proposed conditional statement do this?

  4. #4
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Color Entire Row

    Disregard Previous post.

    Solution above works PERFERCT. Recorded the macro of the Conditional Statement and ALL is GOOD thanks !!!!!!

  5. #5
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Color Entire Row

    I once again have misspoken, forgive me.

    This solution works great if column C is static. Those blocks values will change. Can the conditional formatting account for that? This is looking for an exact value.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Color Entire Row

    Try the attached file. I've had to add a header row to allow filtering. The macro is in Module1.
    Attached Files Attached Files
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Color Entire Row

    Hi hftechno,

    ...Those blocks values will change. Can the conditional formatting account for that? This is looking for an exact value.
    Yes it will work, as long as you assign a specific value to every unique number in Column C.

    In the attached sample Workbook, I have added extra blocks. Some with the same unique values, and in between some lines with another defined value and color format.

    Regards.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Color Entire Row

    RESOLVED!!!
    Mumps1 - your macro was more of what I was looking for. There are so many ways to solve a problem THANKS so much again to you both.

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Color Entire Row

    You are very welcome.

+ 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] Color entire row depending on value in a column
    By Sgligori in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2016, 04:48 PM
  2. [SOLVED] Color entire range on conditions
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-17-2015, 01:24 AM
  3. Change a entire Row's color based on the row.
    By Spardus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 10:15 AM
  4. color band in entire current row
    By kasuthar in forum Excel General
    Replies: 2
    Last Post: 12-25-2009, 11:00 AM
  5. Changes entire row to a certain color
    By Darrell456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-13-2009, 04:15 PM
  6. colouring the entire row to a color .
    By roshinpp_77 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-09-2006, 04:55 PM
  7. Change entire row color
    By mthomas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2005, 08:05 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