+ Reply to Thread
Results 1 to 5 of 5

Autofilter, copy, paste in tabs

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Autofilter, copy, paste in tabs

    Hello,

    I am looking to make a macro that cannot be solved by recording a macro, because it needs a loop. I am attaching a similar dummy workbook. Here are the steps I am looking to take:
    1) Autofilter row 1 in "workbook" tab
    2) Select the autofilter in A1 in workbook tab, choose the first name that appears (ie: John), copy all data.
    3) Insert a new tab, paste data, name the tab "John"
    4) loop steps 2-3 until there are no more names in the autofilter

    -Based on the attached example, I want to end up with 3 new tabs that have the data from the autofilter on the first tab.

    Thanks!
    Mike
    Attached Files Attached Files
    Last edited by mgnickel; 10-12-2011 at 04:21 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Autofilter, copy, paste in tabs

    hi, mgnickel, please check attachment, run code "test"
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Autofilter, copy, paste in tabs

    This looks great, just a couple more things, can you make it so that it only copies the data in columns H-U, including headers?

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Autofilter, copy, paste in tabs

    please check attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Autofilter, copy, paste in tabs

    Thank you so much! You are great!

+ 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