+ Reply to Thread
Results 1 to 7 of 7

Macro to list data from several sheets in summary sheet

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro to list data from several sheets in summary sheet

    I need a macro to to the following:

    I have several templates with exactly the same setup, and new sheets will be added. The data is structured so that, starting at Row 7 in each template sheet:


    Sheet 2:

    Country: AAA

    Column A Column B Column C
    Name A1 Number B1 Number C1
    Name A2 Number B2 Number C2
    Name A3 Number B3 Number C3

    Sheet 3:

    Country: BBB

    Column A Column B Column C
    Name B 1 Number B1 Number C1

    Sheet 4:

    Country: CCC

    Column A Column B Column C
    Name C1 Number B1 Number C1
    Name C2 Number B2 Number C2


    There can be a total of 9 items (Name 1...9) in each sheet, but the number can vary. I don't want to copy the blank rows.

    I need the data to be summarized in a Summary sheet when runniong a macro, so that the setup looks like this:

    Column A Column B Column C Column D
    AAAA Name A1 Number B1 Number C1
    AAAA Name A2 Number B2 Number C2
    AAAA Name A3 Number B3 Number C3
    BBBB Name B1 Number B1 Number C1
    CCCC Name C1 Number B1 Number C1
    CCCC Name C2 Number B2 Number C2


    Any help would be greatly appreciated, as I'm really struggelig to get this working!

    Thanks.
    Last edited by thunderstorm77; 07-21-2011 at 02:33 AM.

  2. #2
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Macro to list data from several sheets in summary sheet

    can u post a sample workbook.
    I thk i might be able to help u

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to list data from several sheets in summary sheet

    Great!

    Please see the attached file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Macro to list data from several sheets in summary sheet

    u can make additions to this macro i have prepared it for only 2 temps
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Macro to list data from several sheets in summary sheet

    u can add at the beginning which i forgot to mention.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-21-2011
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to list data from several sheets in summary sheet

    Thanks a lot - this seems to be doing what I need.

    One question: I need to be able to process all sheets (except for the Summary Sheet). Can we do this in a way like this:

    For I = 2 To Sheets.Count
    A$ = Sheets(I).Name

    ...

    I = I + 1
    Next I

    Also, the sheet names are likely to change from "Template 2,3,4" etc.
    Last edited by thunderstorm77; 07-21-2011 at 04:32 AM.

  7. #7
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Macro to list data from several sheets in summary sheet

    yes we can do this.but number of sheets have to be clearly defined
    Last edited by vipul.halbe; 07-23-2011 at 12:25 AM.

+ 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