+ Reply to Thread
Results 1 to 4 of 4

Filter by color and sort Z-A with VBA

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Filter by color and sort Z-A with VBA

    Afternoon

    I am trying to filter a column by a color and then sort it Z-A once it has been filtered. Is this possible with VBA? I am trying to automate my sheet as much as possible so users don't have to sort and filter manually where possible. The column I am working with is I:I.

    Many thanks in advance.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,110

    Re: Filter by color and sort Z-A with VBA

    Insert filter.
    Sort I column descending.
    And then filter out color you want.

    It's just one click you trying to avoid (sortin) that you will replace with another click (macro)?
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-01-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Filter by color and sort Z-A with VBA

    Quote Originally Posted by zbor View Post
    Insert filter.
    Sort I column descending.
    And then filter out color you want.

    It's just one click you trying to avoid (sortin) that you will replace with another click (macro)?
    It is easy to do however not everyone knows excel (or how to use a mouse). I have automated the rest of my sheets with VBA for things like filtering out blank rows and this is currently the only sheet that needs manual work. The sheet will have new data in every day and have to be set up be several people some of whom struggle with excel, hence the atomisation.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,110

    Re: Filter by color and sort Z-A with VBA

    How about this:

    In I column, whatever cell you click it will sort and filter that color.
    If you click anywhere else it will remove filter.
    Attached Files Attached Files

+ 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. VBA to update Filter by Color in Pivot table by cell value/color
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2015, 05:56 PM
  2. Replies: 4
    Last Post: 12-29-2013, 11:41 PM
  3. Replies: 0
    Last Post: 03-07-2013, 11:58 AM
  4. Replies: 0
    Last Post: 12-09-2010, 03:44 PM
  5. Excel sort by Fill Color by custom list sort
    By Dash4Cash in forum Excel General
    Replies: 2
    Last Post: 07-29-2005, 06:05 PM
  6. Replies: 3
    Last Post: 02-28-2005, 08:06 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