+ Reply to Thread
Results 1 to 4 of 4

create list from data on multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    hong kong
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up create list from data on multiple sheets

    Hi,

    I am not an IT and I really really need help.

    I have data contained in matching cells from several sheets. I need a worksheet that reflect the summary of the data from the worksheets. No formula is required. I just want my summary worksheet to list the all the data from my other worksheets. I might end up having about a hundred worksheets that I need included in the summary. Attached is a sample.

    It would be better if the summary automaticaaly updates as new worksheets are added.

    Thank you.
    Attached Files Attached Files
    Last edited by bonsai79; 08-21-2009 at 09:37 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: create list from data on multiple sheets

    Put this macro in the SheetModule for SUMMARY:
    Option Explicit
    
    Private Sub Worksheet_activate()
    Application.EnableEvents = False
        Call AssembleSummary
    Application.EnableEvents = True
    End Sub
    Put this macro into a normal module:
    Option Explicit
    
    Sub AssembleSummary()
    Dim ws As Worksheet, NR As Long
    Application.ScreenUpdating = False
    Sheets("Summary").Activate
    Range("A4:AM" & Rows.Count).ClearContents
    NR = 4
    
        For Each ws In Worksheets
            If LCase(ws.Name) <> "summary" Then
                ws.Range("B3:B7,B9:B12,B14:B15,B17:B20,B22,B24:B27,B31:B33").Copy
                    Range("A" & NR).PasteSpecial Paste:=xlPasteValues, Transpose:=True
                ws.Range("B34,B36:B37,B41:B43,B46:B50,B53:B55").Copy
                    Range("Z" & NR).PasteSpecial Paste:=xlPasteValues, Transpose:=True
                NR = NR + 1
            End If
        Next ws
    
    Range("A1").Select
    Application.ScreenUpdating = True
    End Sub
    If you want to add a Forms button to the sheet, you can, then you can attach the macro to it. But the _activate macro given above will cause the SUMMARY sheet to reassert with all the data from the other sheets every time you select the sheet.

    In Excel 2007, this will have to be a .xlsm file. (sample file attached)
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-19-2009
    Location
    hong kong
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: create list from data on multiple sheets

    Thank you so much for your help. You're an angel!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: create list from data on multiple sheets

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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