+ Reply to Thread
Results 1 to 3 of 3

highlight/remove highlight of rows conditional on cellvalue

  1. #1
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    139

    highlight/remove highlight of rows conditional on cellvalue

    Hey there,

    What I wish to acheive by this macro is that all rows with value in column B being the same as the chosen value from a dropdown list (in d2) are highlightet, when the macro is run. Also, when d2 is empty and the macro is run, I want the (by the macro) previously highlightet rows to go back to normal (not highlightet). Hope that makes sense The code below (not working) shows what I got at this point.
    I also considered making it a Worksheet_Change event instead, but i guessed this would make it more demanding than a sub to run by click on a commandbutton. Is that right?

    Thanks a lot in advance for your help.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: highlight/remove highlight of rows conditional on cellvalue

    try this macro
    highlighting is ambiguous and also will go away if you accidentally select some other cell
    I have indicated highlighting by a color

    Please Login or Register  to view this content.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  3. #3
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    139

    Re: highlight/remove highlight of rows conditional on cellvalue

    Excellent! Problem solved. Thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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