+ Reply to Thread
Results 1 to 2 of 2

Filtered Data Loop, Copy and Paste into New Workbook, delete first column and save

  1. #1
    Registered User
    Join Date
    01-20-2016
    Location
    san francisco, CA
    MS-Off Ver
    2007
    Posts
    7

    Filtered Data Loop, Copy and Paste into New Workbook, delete first column and save

    Hi there! I don't even know if this is possible, but I could really use some help with a macro. I need it to copy and paste data from Workbook 1 into a new workbook (workbook 2) but in the process to loop and filter through everything in column A, then copy all of the filtered data into a new workbooks and save it with a file name based on the data in workbook 1 (cell A2). If possible can it also delete the entire A column in workbook 2 prior to saving?

    Pet Owner Pick up date Pet Tag
    Bob 1/19/2016 213
    Jerry 1/20/2016 215
    Tom 1/21/2016 213
    Amy 1/22/2016 213
    Mike 1/23/2016 213
    Bob 1/24/2016 213

    So in the above example, the macro would filter Bob, create a new worksheet and save it as "bob.xls" but the data in the worksheet would only have pick up date and pet tag, then it would look and create a new worksheet, save it as Jerry but the data would only have pick up date and pet tag... repeat so on and so on...

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Filtered Data Loop, Copy and Paste into New Workbook, delete first column and save

    Hello and welcome to the forum
    try this code
    Please Login or Register  to view this content.
    Regards
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. loop to copy/paste data between worksheets, save results
    By nbmg1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2013, 06:18 PM
  2. Copy/Paste filtered data from one sheet to another with only matched column headings
    By archerrc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 05:00 PM
  3. [SOLVED] Loop through entire sheet, Insert row, copy row data, paste row data, delete row
    By Hyperdude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2012, 01:46 AM
  4. Replies: 3
    Last Post: 08-28-2012, 10:09 AM
  5. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  6. [SOLVED] Copy/Paste Filtered Data To New Sheet In New Workbook.
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-13-2012, 09:10 PM
  7. Creating a loop that will sort, copy, paste and save data into seperate workbooks
    By EggHead in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2009, 03:17 PM
  8. Copy filtered data & paste formatted in a new workbook
    By BorisMKD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2008, 06:54 AM

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