+ Reply to Thread
Results 1 to 3 of 3

Select data in filtered list

  1. #1
    Stephen Rainey
    Guest

    Select data in filtered list

    Hi,
    I have a filtered list that I wish to copy using VBA. Each time the
    filter is applied, the size of the list may vary.
    It is simple to cut&paste, however my objective is to write a macro to
    automate this task as it is repeated hundred/thousands of times.

    So, can someone please suggest how to "select" the contents of the filtered
    list in a macro ?



  2. #2
    Max
    Guest

    Re: Select data in filtered list

    Try Debra's page at:
    http://www.contextures.com/xlautofilter03.html
    Scroll down to "Copy Filtered Rows" for the Sub CopyFilter() by Tom Ogilvy
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---
    "Stephen Rainey" wrote:
    > Hi,
    > I have a filtered list that I wish to copy using VBA. Each time the
    > filter is applied, the size of the list may vary.
    > It is simple to cut&paste, however my objective is to write a macro to
    > automate this task as it is repeated hundred/thousands of times.
    >
    > So, can someone please suggest how to "select" the contents of the filtered
    > list in a macro ?
    >
    >
    >


  3. #3
    Jim May
    Guest

    Re: Select data in filtered list

    I use this to Send the Current Auto-Filtered Data to a new sheet:


    Sub DumpAutoFilterToNewSheet()
    Dim ws As Worksheet
    Dim ws1 As Worksheet
    Set ws = ActiveSheet
    Set ws1 = Worksheets.Add
    ws.Activate
    ws.AutoFilter.Range.Copy _
    Destination:=ws1.Cells(1, 1)
    End Sub

    Hope this Helps,


    "Stephen Rainey" <[email protected]> wrote in message
    news:Op#[email protected]:

    > Hi,
    > I have a filtered list that I wish to copy using VBA. Each time the
    > filter is applied, the size of the list may vary.
    > It is simple to cut&paste, however my objective is to write a macro to
    > automate this task as it is repeated hundred/thousands of times.
    >
    > So, can someone please suggest how to "select" the contents of the filtered
    > list in a macro ?



+ 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