+ Reply to Thread
Results 1 to 6 of 6

Consolidate data from workbooks and create link formulas in the summary workbook

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Consolidate data from workbooks and create link formulas in the summary workbook

    Hello,

    The following code is from Ron De Bruin's website, http://www.rondebruin.nl/summary2.htm . I am using it to generate a summary from different workbooks and at the same time generate/create links in the summary workbook.

    My question is, how do I select the first sheet of every workbook, irrespective of it's name? I tried changing ShName = "Sheet1" but to no avail.

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Consolidate data from workbooks and create link formulas in the summary workbook

    Am I correct to assume that the ShName is used to indicate from where the data will be pulled? Or is it for simply to list the name of the sheets in the summary workbook? I figured if it's only used for listing the name of the sheets from where data was pulled, I could remove it altogether.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Consolidate data from workbooks and create link formulas in the summary workbook

    Try
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Consolidate data from workbooks and create link formulas in the summary workbook

    arlu1201, thank you very much. Exactly what I was looking for.

  5. #5
    Forum Contributor
    Join Date
    11-05-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    107

    Re: Consolidate data from workbooks and create link formulas in the summary workbook

    Hello sans,

    Can you please attach a workbook with vba in it? I would be helpful to see how it works.

    Thank you

  6. #6
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Consolidate data from workbooks and create link formulas in the summary workbook

    Hi Naja,

    Download the zip file, unzip it to your desktop, open one of the workbooks, use the following code

    Please Login or Register  to view this content.

    and a new workbook will pop up that copies the TOTAL row (B7:AA7) from the two workbooks in the folder and pastes them in the newly created workbook.

    Hope the above makes sense.
    Attached Files Attached Files

+ 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