+ Reply to Thread
Results 1 to 4 of 4

Using offset to select cells ignoring filtered results

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    27

    Using offset to select cells ignoring filtered results

    I have a userform that will enable users to edit a database, I have an up and down arrow that scrolls through the database. I want to filter the database and use the userform to scroll through only the filtered results.

    Please Login or Register  to view this content.
    this code keeps it in the table, how do I use:

    Please Login or Register  to view this content.
    to only select the items that are visible?
    Attached Files Attached Files

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Using offset to select cells ignoring filtered results

    Can you use the filtered value(s) to navigate
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Using offset to select cells ignoring filtered results

    You could simply loop while the next row is hidden:

    Please Login or Register  to view this content.
    Rory

  4. #4
    Registered User
    Join Date
    07-17-2019
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    27

    Re: Using offset to select cells ignoring filtered results

    Thank you very much. When I used this, because the main data set (not the spreadsheet attached) has blanks, i think this caused issues, which I resolved by selecting a column that had no blanks on initializing the form.

    I came up with a subsequent error where if the data was filtered, the code from rorya allowed the button to go one below the extent of the table.

    I solved using the following, but it looks very ugly! Effectively I reversed the code to make it go back up, which I also used for the "UP" button.

    Please Login or Register  to view this content.
    Any thoughts on improving this?

+ 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] Using OFFSET to select a value from filtered list
    By bwiddoes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2017, 06:43 PM
  2. [SOLVED] How to select filtered values and copy the results using makros
    By chablo309 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2015, 09:34 AM
  3. How to select filtered values and copy the results using makros
    By chablo309 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2015, 09:14 AM
  4. Macro to select till last cell visible(numbers in cells) (filtered) ignoring formulas
    By DiegoBoffa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2012, 11:10 PM
  5. Selecting or ignoring filtered/hidden cells
    By handerson0603 in forum Excel General
    Replies: 1
    Last Post: 03-29-2012, 11:42 AM
  6. Replies: 1
    Last Post: 08-09-2010, 05:38 AM
  7. Using VBA to autofilter and paste over results - can't select only filtered rows.
    By Cornwell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2010, 11:33 AM

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