+ Reply to Thread
Results 1 to 6 of 6

Move between filtered cells using buttons.

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Move between filtered cells using buttons.

    Hello, (please see attachment)
    When I'm filtering B column, I would like to know if there is a way to move into next unique filtered data using "+" button and into previous unique filtered data using "-" button. Perhaps there is some key shortcut to move between filtered cells? Everytime pressing filter menu, deselecting current data and then selecting next one is taking too long. Thank you for any help!
    Attached Files Attached Files
    Last edited by Pojzon; 10-25-2016 at 01:27 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Move between filtered cells using buttons.

    I make use of a pivot table to get the unique list of values. However, the pivot table sorts the names alphabetically. The data must also be alphabetically sorted.

    The pivot table is also used to determine if you are already at the top or the bottom of the data.

    Otherwise, the code uses the find command to find the first value of the desired range.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Re: Move between filtered cells using buttons.

    Thank you for answer, but that's not exactly what I need. I made a gif to explain what i mean: https://gfycat.com/DirtyMisguidedArabianhorse. Is something like this possible?

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Move between filtered cells using buttons.

    Nice graphic! I understand now.

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Move between filtered cells using buttons.

    OK, basically the same logic, but this time applying the filter instead of going to the first instance of the value.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Re: Move between filtered cells using buttons.

    Sweet! That's what I needed, great job, thank you very 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. Replies: 5
    Last Post: 03-27-2014, 04:21 PM
  2. [SOLVED] move all buttons
    By blue.chio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2013, 05:30 AM
  3. [SOLVED] Userform Previous Next Buttons to Show Only Filtered Records?
    By cindy71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 10:38 AM
  4. in vba, move to next filtered row, not next row
    By BHudPE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2010, 02:19 PM
  5. Buttons to move cells from one sheet to another (back and forth)
    By farresto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2007, 01:47 PM
  6. [SOLVED] Buttons move when printing
    By Brett in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2005, 05:05 PM
  7. Replies: 2
    Last Post: 04-07-2005, 11:06 PM

Tags for this Thread

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