Results 1 to 4 of 4

Extract data using Advanced Filter and VBA

Threaded View

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Extract data using Advanced Filter and VBA

    Hi, the below code to extract data by Advance filter doesnt work for me, it extracts only the header row. Any help please?



    Sub FilterExtract()
    
    Sheets("Filter").Select
    Range("A6").Select
    Range(Selection, Selection.End(xlToRight)).Select
    Range(Selection, Selection.End(xlDown)).Select
    Selection.Clear
    
    Sheets("RawData").Range("Table1[#All]").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _
    Sheets("RawData").Range("J1:L2"), CopyToRange:=Sheets("Filter").Range("A6"), Unique:=True
    
    Columns.AutoFit
    Sheets("Filter").Range("A6").Select
    
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Advanced Filter - extract data to new sheet
    By schnautza in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-28-2014, 02:43 PM
  2. advanced filter - button to re apply advanced filter across multiple sheets
    By motmac87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 11:16 PM
  3. Replies: 4
    Last Post: 08-02-2010, 07:16 AM
  4. missing or ill egal extract range advanced filter
    By tjtjjtjt in forum Excel General
    Replies: 3
    Last Post: 07-10-2005, 06:05 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