+ Reply to Thread
Results 1 to 3 of 3

autofilter unique exept the first two

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    autofilter unique exept the first two

    Hello,

    I've got a small question, I use the autofilter function with vba in my sheet, this is the code.

    Please Login or Register  to view this content.
    The strange part is that whatever is filtered, the first two finds are the same, the rest of the autofilter's output is unique.

    Anyone got an idea?

    Thanks in advance.

    ABBOV

    See the attachment for an example.
    Attached Files Attached Files
    Last edited by ABBOV; 08-11-2010 at 07:34 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: autofilter unique exept the first two

    It's because AF needs a header, so if you insert a cell in C1 and put any old thing in it, it will work. Your code can be abbreviated slightly to:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Re: autofilter unique exept the first two

    Thanks for the quick response,

    Your explanation sounds logical, also thanks for the quick remake of the code, Learned something new today. (and this day is only 1,5 hours old )

    Best regards

    ABBOV

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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