+ Reply to Thread
Results 1 to 3 of 3

Userform to show filtered data

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    Middle east
    MS-Off Ver
    Excel 2007
    Posts
    13

    Userform to show filtered data

    Hi All,

    I have built a user form where the user types something (unique value), presses a "find" button, and the form shows the relevant record from the database sheet each filed from the relevant record is presented separately, like in an MS Access form…)

    Unfortunately, I cannot attach a sample here because it is a foreign language and I really can't convert the whole thing to English right now (not to mention the fact that it contains confidential commercial data).

    Anyway, as I have mentioned, the form takes its data from a rather large database and what I am now trying to do now is simulate on the form a two criteria "auto filter" , and let the user scroll through the filtered data – from within the form - with a slider or next-prev buttons.

    Can someone please suggest to me a code that will filter the database and then populate to the form only the filtered data, and let the user scroll back and forth?

    Thanks in advance

  2. #2
    Registered User
    Join Date
    01-26-2013
    Location
    Middle east
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Userform to show filtered data

    OK... So I have made some progress...

    Now I have a working scrollbar on the form that loops through the lines (and the form shows the data of the relevant line). Here is the code I am using:
    Please Login or Register  to view this content.
    What I still need is the code to apply autofilter to the database (based on a value that the user selects from a ComboBox) and then - I need the scrollbar to loop through the visible lines only, because my data is pulled to the form based on the scrollbar value, so if the scrollbar will loop though visible lines only - the form will only show the visible data as well.

    BTW, I will be very happy even with a solution that assumes the database is already filtered (from within the sheet, and not from the ComboBox on in the form...) and tells the ScrollBar to loop only through the visible cells.

    Hope all this is clear, even though I have not provided an example.

    :-)
    Last edited by onsid; 02-23-2013 at 04:23 AM.

  3. #3
    Registered User
    Join Date
    01-26-2013
    Location
    Middle east
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Userform to show filtered data

    Due to the urgency of my need for solution, I struggled to find help elsewhere.
    No need to reply to this thread anymore (would have deleted it if I knew how...).
    Thanks anyway.

+ 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