+ Reply to Thread
Results 1 to 6 of 6

create master list from varying worksheets

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    create master list from varying worksheets

    All

    Seeking some assistance please...

    I have a workbook with 14 worksheets that have member numbers (ie each member has a unique number) in each sheet... I would like to make a master list of member numbers on a new sheet.... as the member numbers may change each month this needs to be 'dynamic' for want of a better word....

    I have some buttons and vba etc that do other formatting etc, however, I can't figure this one.... I will always be 'looking' at column A in each worksheet with the first 'number' in row 2....

    so ideally the VBA would go to each worksheet, copy members numbers from WS1, column A2, and paste in new worksheet at c2. then go to WS2, column A2, and copy and paste below the numbers copied from WS1....or something similar.... I need to end up with a list of Unique Member umbers so duplicates would be removed....

    hope I haven't confused the issue with my explanation....

    TIA
    Shaz0503

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

    Re: create master list from varying worksheets

    Submit a copy of you workbook. You may be able to do what you need with a formula.

  3. #3
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: create master list from varying worksheets

    stnkynts

    please see dummy file attached...

    WS 1;2;4 and 5 have "data"...

    Final_Format columns K-O show how I would like the data to display.... no dups but a consolidated list of numbers from WS 1;2;4 and 5

    hope this makes sense

    S
    Attached Files Attached Files

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

    Re: create master list from varying worksheets

    Sorry for the delay. I believe this does exactly as your spreadsheet example indicates:

    Sub Unique_List()
    Dim wsFinal As Worksheet:   Set wsFinal = Sheets("Final_Format")
    Dim ws As Worksheet
    
    Application.ScreenUpdating = False
    
    For Each ws In Worksheets
        If ws.Name <> wsFinal.Name Then
            ws.Range("A2:A" & ws.Range("A" & Rows.Count).End(xlUp).Row).Copy Destination:=wsFinal.Range("C" & Rows.Count).End(xlUp).Offset(1, 0)
        End If
    Next ws
    
    wsFinal.Range("C1:C" & wsFinal.Range("C" & Rows.Count).End(xlUp).Row).AdvancedFilter xlFilterCopy, , wsFinal.Range("M1"), True
    
    Application.ScreenUpdating = True
    
    End Sub

  5. #5
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: create master list from varying worksheets

    Thanks stnkynts

    I will test this out and let you know...

    rgds

    s

  6. #6
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: create master list from varying worksheets

    stnkynts

    Thanks for the above - works fine my 'real' file .

    Have another issue with this file but will post new question...

    Thanks you for your assistance

    rgds

    shaz0503

+ 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] How to create a master list worksheet from lists of names on several worksheets
    By ESUCP Jamie in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 07-20-2015, 03:03 PM
  2. I'm trying to create a list of errors from raw data based on a master list
    By aperring in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 10:47 AM
  3. Replies: 13
    Last Post: 02-12-2013, 12:49 PM
  4. Create master list from several worksheets of data
    By rajsa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2009, 11:33 AM
  5. [SOLVED] need a way to create seperate worksheets from a master
    By sunkat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2006, 12:45 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