+ Reply to Thread
Results 1 to 3 of 3

VBA Autofilter Problem

  1. #1
    Registered User
    Join Date
    07-17-2005
    Posts
    22

    Question VBA Autofilter Problem

    Hi folks,

    I'm trying to manipulate a number of large datasets (web logs) to eliminate content I am not interested in. This data is split over 18 spreadsheets, each containing around 900k rows, with column 'A' containing a long text string.

    I've created the following filter expression in VBA -

    Please Login or Register  to view this content.
    This runs without error, however is only filtering around 3,000 records from the 900k in the worksheet (not the expected 90-95%). Am using Excel 2010.

    Any thoughts? I think it is only filtering on the last value in the array "/company"?

    Cheers

    Rob

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Autofilter Problem

    Like AND and OR OPERATORS in filter you can use two with asterisks (Wild card) ONLY. So, the code works, but only filter the first two with *.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VBA Autofilter Problem

    Insted of Operator:=xlAnd use Operator:=xlFilterValues


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Autofilter problem
    By ferke333 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 11:55 AM
  2. Autofilter problem
    By anahej22 in forum Excel General
    Replies: 0
    Last Post: 06-03-2011, 05:32 AM
  3. autofilter problem
    By Karmen in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 02-15-2006, 09:43 AM
  4. Autofilter problem
    By Dan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. autofilter problem
    By emre in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-29-2005, 06:06 PM

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