+ Reply to Thread
Results 1 to 5 of 5

Macro to filter column and copy rows to new sheet with loop for all unique values in colum

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    Las Vegas
    MS-Off Ver
    2010
    Posts
    3

    Macro to filter column and copy rows to new sheet with loop for all unique values in colum

    Hello all. I'm new to macros and VBA but fairly experienced in Excel. I am trying to automate a repetitive process at work which can be quite time consuming and I am virtually lost as to where to start. We generate a report every week from Access which needs to be separated by the properties in the Property column and then sent to each individual property as a separate file. I would like a macro to either filter or lookup each unique property in the column and then create a new sheet named for that property and then copy the selected rows along with the header to the new sheet. This would then do a loop until all properties are copied.

    We have a total of 47 properties but not all properties are on every report. If I could have a master workbook where we could paste the new report, run the macro, and do a Save As, it would be ideal.

    Attached is a sample of the report. We are using 2010 at work but this sample is in 2013.

    Any help provided would be greatly appreciated.

    Thanks,

    Jim
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-23-2015
    Location
    Las Vegas
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro to filter column and copy rows to new sheet with loop for all unique values in c

    Here is a better sample of what I'm looking for. I've copied the rows for a few of the properties to their individual sheets.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to filter column and copy rows to new sheet with loop for all unique values in c

    Here you go

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

  4. #4
    Registered User
    Join Date
    09-23-2015
    Location
    Las Vegas
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro to filter column and copy rows to new sheet with loop for all unique values in c

    Thank you Stnkynts!! That works perfect. Now I will have to try breakdown the code so I understand what each step does.

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to filter column and copy rows to new sheet with loop for all unique values in c

    Now I will have to try breakdown the code so I understand what each step does.
    The code I supplied is fairly advanced and not easy to understand. Let me know if you have any questions and I will do my best to explain. Thanks for the rep.

+ 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. [SOLVED] Excel 2007-Adv Filter Copy and Loop with Nested Autofilter Using Values from Adv Filter
    By Southfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2014, 02:07 AM
  2. [SOLVED] Creating a Filter loop based on unique values in a column
    By Ragnarok_421 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2014, 05:34 AM
  3. [SOLVED] Macro to copy and paste only unique values from one column to another column in same sheet
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2014, 05:44 AM
  4. [SOLVED] Filter rows based on unique values in one column + specific value in another column
    By Dieneces in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 09:55 AM
  5. Loop through column and copy specific values to another sheet for calculations
    By caoexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 02:49 PM
  6. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  7. Copy rows with unique values to another sheet
    By vmed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2006, 03:20 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