+ Reply to Thread
Results 1 to 5 of 5

Loop through an existing filter and copy and paste content into separate workbook

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    7

    Loop through an existing filter and copy and paste content into separate workbook

    Hi all,

    I know this is a fairly common question, but I have not been able to figure out how to apply to my situation.

    I have a workbook (see attached) with a filter already in it in cell B1. For each of the filter criteria, I want to copy and paste each sheet into a new workbook. Is this possible?

    Thanks for any help you can offer with this.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Loop through an existing filter and copy and paste content into separate workbook

    What would be the new workbooks' names?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    07-24-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Loop through an existing filter and copy and paste content into separate workbook

    Quote Originally Posted by p24leclerc View Post
    What would be the new workbooks' names?
    It would be ideal for the new workbooks to be named based on the filter -- whatever the filter value is, is the workbook name. This is not critical, however.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Loop through an existing filter and copy and paste content into separate workbook

    As your Territory tab uses a pivot table, we'll have to copy only values for each filter value into the new sheets.
    Is that OK?

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Loop through an existing filter and copy and paste content into separate workbook

    see attached file for working example.
    here is the macro:
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Download Excel Workbook from IE copy and paste into existing Workbook
    By kboy1289 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-16-2013, 03:13 PM
  2. Open workbook, filter values, copy/paste into Active workbook.
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 12:17 PM
  3. [SOLVED] Search workbook for matching detail and copy/paste the row/column content.
    By GB.RTMC in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-28-2012, 09:55 AM
  4. Replies: 2
    Last Post: 09-11-2012, 09:42 AM
  5. Replies: 1
    Last Post: 10-17-2005, 04:05 AM

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