+ Reply to Thread
Results 1 to 13 of 13

unique filter on userform

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    unique filter on userform

    Hi all,

    i have a button on a worksheet that when clicked goes through a column and returns a unique list that i use in data validation list (See below)

    however what i would like to do is apply that same theory to a button on the userform as i have a combobox on the userform that has the same data in as the combobox on the sheet

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    Re: unique filter on userform

    Ttry and adapt this code:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    i got a run time error 70

    permission denied

    Please Login or Register  to view this content.
    as you can see nothing is repeated
    Last edited by Learning ExL; 05-06-2020 at 01:35 PM.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: unique filter on userform

    Make sure that the RowSource property of the combo is blank.

  5. #5
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    just leaves me with a blank combobox....puzzled

  6. #6
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    what im trying to do is select and date and truck then return data in that row

  7. #7
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    Re: unique filter on userform

    See my example.

    Look where the data is, maybe not in Sheet1 - see my code.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: unique filter on userform

    Make sure the code is looking at the correct sheet.

  9. #9
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    userform is called:- UF_VehStats

    here is my workbook
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    Re: unique filter on userform

    Worked perfect to me

    Just put:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    worked that time but how come its got an empty line in the combobox. thank you very much btw

  12. #12
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    Re: unique filter on userform

    Quote Originally Posted by Learning ExL View Post
    worked that time but how come its got an empty line in the combobox. thank you very much btw
    Try this:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: unique filter on userform

    many thank sir

+ 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. Userform filter with criteria (Advanced Filter)
    By nordicdust in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-02-2019, 08:16 AM
  2. Filter and copy/overwrite to a new workbook and rename to unique filter value
    By gssc141 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2015, 10:28 AM
  3. Replies: 5
    Last Post: 12-19-2013, 06:58 AM
  4. Userform: Make a advanced filter script "filter" when a combobox is altered
    By Zheno in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2010, 04:06 AM
  5. Filter>Advanced Filter>Unique failure
    By BRISBANEBOB in forum Excel General
    Replies: 2
    Last Post: 06-14-2009, 07:58 PM
  6. unique filter results in some non-unique records.
    By Serials Librarian in forum Excel General
    Replies: 2
    Last Post: 05-26-2006, 05:10 PM
  7. [SOLVED] Unique Value without using FILTER
    By Amit Dhawan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2005, 11:05 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