+ Reply to Thread
Results 1 to 9 of 9

Color row in range if any cell of that range is value

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Color row in range if any cell of that range is value

    Hi all,

    I need macro to color the rows in range O3:W100 if any cell of that row is value.
    I've a problem. I can't use Conditional Format to do that because I'm using other macro witch is not recognizing colors from Conditional Format.
    Any help?

  2. #2
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Color row in range if any cell of that range is value

    I've that so far:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Color row in range if any cell of that range is value

    maybe
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  4. #4
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Color row in range if any cell of that range is value

    It does change the color but only the only cell its entered and I need to highlight the row in that range of cell was entered.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Color row in range if any cell of that range is value

    maybe this?
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Color row in range if any cell of that range is value

    Looks better but now its highlighting all the row and I need to highligt the row only in range O:W.
    So I think that part
    Please Login or Register  to view this content.
    has to be changed some how to select not EntireRow but just the range O:W.

  7. #7
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Color row in range if any cell of that range is value

    Hi,
    try this
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Color row in range if any cell of that range is value

    Thanks john55,
    Im nearly there ;-)
    The problem with last code is that clearing my colors from the rest of columns and this is not what I want ;-(.
    Is it not possible to change something here to specify the range in EntireRow instead of coloring and clearing the rest?
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Color row in range if any cell of that range is value

    try this
    Please Login or Register  to view this content.
    Last edited by john55; 03-10-2014 at 07:01 AM.

+ 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] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. [SOLVED] vba code to change the cell color by looking in a range that contains the color index valu
    By ckklconner in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-24-2013, 09:15 AM
  3. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  4. Format color in cell range
    By navacastro in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 01:40 PM
  5. Setting Color of Range based on adjacent cell color
    By JimE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2009, 09:04 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