+ Reply to Thread
Results 1 to 8 of 8

Pulling data from multiple spreadsheets without opening

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Pulling data from multiple spreadsheets without opening

    Hello,

    I would like to pull together data from multiple workbooks into a consolidated workbook without opening the individual files. I would like to pull specific worksheets from each of those workbooks into my consolidated workbook. Ideally, it would look exactly same, but it has to reflect changes in the underlying workbooks (so there has to be some link between them, or a refresh button that pulls the data when clicked).

    The workbooks will be located in one directory.

    Is it possible to do something like this using VBA.

    Thanks

    UPDATE:

    I've attached the excel files below as an example of what I'm trying to do. I'm still a beginner at VBA, so the two links provided below were difficult for me to understand. The consolidation workbook is what I'd like it to look like. I'd like to consolidate the workbooks into different sheets. There may be cases where the individual workbooks have multiple sheets as well.

    Workbook A.xlsx
    Workbook B.xlsx
    Workbook C.xlsx
    Consolidation (How I want it to look).xlsx
    Last edited by anthony_91; 08-23-2013 at 08:14 AM. Reason: Attaching excel files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Pulling data from multiple spreadsheets without opening

    Perhaps try this addin The code is also available

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Pulling data from multiple spreadsheets without opening

    Quote Originally Posted by Pepe Le Mokko View Post
    Perhaps try this addin The code is also available
    I don't want to try and addin as this will have to run on other people's computers.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Pulling data from multiple spreadsheets without opening

    On the same site, there is a section which deals with your request. I think it uses ADO.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Pulling data from multiple spreadsheets without opening

    Quote Originally Posted by anthony_91 View Post
    I don't want to try and addin as this will have to run on other people's computers.
    Why not install it on other people's computer then? After all it's only VBA with an interface?

    There is also code for merging at http://www.rondebruin.nl/win/section3.htm

  6. #6
    Registered User
    Join Date
    02-21-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Pulling data from multiple spreadsheets without opening

    Quote Originally Posted by Pepe Le Mokko View Post
    Why not install it on other people's computer then? After all it's only VBA with an interface?

    There is also code for merging at http://www.rondebruin.nl/win/section3.htm
    Thank you both for your responses.

    If there's a way that I can have a VBA code that will do this, I would prefer that. I tried looking at the code on the website, although it's a bit difficult to understand.

    I've attached some sample workbooks above to illustrate what I'm trying to do.

  7. #7
    Registered User
    Join Date
    07-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Pulling data from multiple spreadsheets without opening

    I'm not sure what your end result needs to be, if it's just a copy of every sheet into the main file that could be easier.
    Last edited by bkrose120; 08-26-2013 at 02:59 AM.

  8. #8
    Registered User
    Join Date
    02-21-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Pulling data from multiple spreadsheets without opening

    Quote Originally Posted by bkrose120 View Post
    I made this form that does open each file but is still quick.. I could revise it to use separate sheets if needed, though i think a better way to utilize your data would be to make a pivot by product after you consolidate.

    For example, if you go to 'Headers' and input the start row as 3, then it will pull those headers and then the data from each file underneath that row. You may want to add the month/date as a column too.
    Thank you for your reply. The only problem is that I need it to consolidate to a particular workbook which is going to have pivot tables and other sheets.

+ 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. Pulling data from multiple excel spreadsheets into one workbook
    By lilbamboo in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 05-08-2013, 05:20 PM
  2. Smart Tags for pulling data from other spreadsheets
    By evanzo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2013, 01:36 PM
  3. Replies: 4
    Last Post: 11-26-2012, 11:10 AM
  4. Pulling Data form multiple pages/ spreadsheets
    By Abies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2011, 07:05 AM
  5. Pulling data from multiple spreadsheets using VBA
    By tittiot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2010, 04:38 AM

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