+ Reply to Thread
Results 1 to 3 of 3

Autofilter doesn't work in Excel VBA

  1. #1
    Registered User
    Join Date
    09-07-2009
    Location
    Buenos Aires, Argentina
    MS-Off Ver
    Excel 2003 SP3
    Posts
    1

    Question Autofilter doesn't work in Excel VBA

    Hi, I'm working on a spreadsheet with 14945 rows and I need to autofilter column n° 70 (which has only TRUE and FALSE values) to show only the TRUE values.

    I run the following code and it shows absolutely nothing. If I manually remove the autofilter and reapply it, it works. However, I can't get it to work using VBA. Not even removing it and reapplying it using VBA code.
    I'm using Excel 2003 SP3 and the code is the following:

    Please Login or Register  to view this content.
    Any ideas??

    Thanks in advance!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Autofilter doesn't work in Excel VBA

    That code works for me.

    Do you have gaps in your data, perhaps the data is not being identified correctly.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Autofilter doesn't work in Excel VBA

    Are you really trying to filter Filed 70? If so I think you will find that AutoFilter will not work with such a large nmber of Fields.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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