+ Reply to Thread
Results 1 to 5 of 5

VBA code to hide rows with certain color

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3

    VBA code to hide rows with certain color

    Need some help here. I want to auto hide rows for certain color (green to be exact). Can anyone help me out with the code for this.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code to hide rows with certain color

    What is giving rise to the colours. Are they from a conditional format or is there some other unique characteristic that relates to a colour, or are they rows you have manually coloured?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-05-2019
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3
    Quote Originally Posted by Richard Buttrey View Post
    What is giving rise to the colours. Are they from a conditional format or is there some other unique characteristic that relates to a colour, or are they rows you have manually coloured?
    Rows that I manually color

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: VBA code to hide rows with certain color

    so try this:

    Please Login or Register  to view this content.
    i used this sub to get the interior color (which i thought was vbGreen but it was not) so verify that you are using the correct number for the color

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-05-2019
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: VBA code to hide rows with certain color

    It worked. Thank Much

+ 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] Hide All Rows Not Containing a Certain Color
    By tgallag1 in forum Excel General
    Replies: 10
    Last Post: 08-20-2017, 07:10 AM
  2. [SOLVED] Need to hide cell + rows based on color
    By elmnas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2015, 07:06 PM
  3. [SOLVED] vba code for hide/unhide tabs based on color
    By Allseasons in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 03-17-2014, 04:04 PM
  4. [SOLVED] Code lines color and hide columns
    By Tyso in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2013, 03:49 AM
  5. Hide rows that do not contain a certain color cell
    By ajzpop in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2013, 10:36 AM
  6. Hide blank Rows - non text/color
    By jeff.p in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-29-2009, 03:25 PM
  7. Hide Rows based on cell color
    By jeff.p in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2007, 10:47 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