+ Reply to Thread
Results 1 to 4 of 4

Pulling Data from Multiple Workbooks into a Separate Master Workbook

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    Boise, Idaho
    MS-Off Ver
    2010
    Posts
    5

    Pulling Data from Multiple Workbooks into a Separate Master Workbook

    Hello,

    I am working on a project where I have to pull data from about 40 different workbooks into a separate data-workbook. However, each workbook is continually adding new sheets. What I would like to happen is for each time I add a new sheet to one of the workbooks, to have a fast and efficient way to add the data I need to the master data-workbook. I am posting this question in this forum because I was hoping there would be a way to have a Macro in place to transfer over the data. If more information is need on the project to find an answer I would be happy to add on.

    Thank you in advance for any and all help!

  2. #2
    Registered User
    Join Date
    08-13-2010
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Pulling Data from Multiple Workbooks into a Separate Master Workbook

    Can you send a sample of the 40 workbooks (just 1 with few sheets, other with added sheets). Also a sample of Master workbook.

  3. #3
    Registered User
    Join Date
    06-09-2016
    Location
    Boise, Idaho
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling Data from Multiple Workbooks into a Separate Master Workbook

    Thank you so much for your reply and willingness to help! Unfortunately, because of where I work, it makes sharing copies a little tricky. However, I think I may have stumbled upon a way to do what I needs by using VBA. If it does work, I'll update this post so others can have this information as well.

    Thank you again!

  4. #4
    Registered User
    Join Date
    06-09-2016
    Location
    Boise, Idaho
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling Data from Multiple Workbooks into a Separate Master Workbook

    In VBA, this is the code I am using... can anyone see what the issue is? When I go to run it, nothing happens. I don't receive an error message but my master spreadsheet doesn't update. Please help!

    Sub LoopThroughDirectory()
    Dim MyFile As String
    Dim erow
    MyFile = Dir("X:\zzMaster\")

    Do While Len(MyFile) > 0
    If MyFile = "zzMaster.xlsm" Then
    Exit Sub
    End If

    Workbooks.Open (MyFile)
    Range("B1:L1").Copy
    ActiveWorkbook.Close

    erow = Data.Cells(Rows.Count, 1).End(x1Up).Offset(1, 0).Row
    ActiveSheet.Paste Destination:=Worksheets("Data").Range(Cells(erow, 1), Cells(erow, 11))

    MyFile = Dir

    Loop

    End Sub

+ 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 for specific date from different workbooks into a master workbook
    By pazuuu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2013, 12:02 PM
  2. Pulling Data From Multiple Workbooks/Multiple Sheets into one Master Book
    By LSUARefugee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2013, 12:37 PM
  3. VBA Code to amalgamate data from separate workbooks into a master workbook
    By scousemouse in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2012, 05:35 AM
  4. Exporting data from separate workbooks to master workbook
    By therock1986 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2010, 11:43 AM
  5. Update master workbook data from separate workbooks
    By Deamo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2010, 02:32 AM
  6. Pulling data from several workbooks to single Master workbook
    By stin25 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-17-2009, 10:29 AM
  7. Pulling data from several workbooks to single Master workbook
    By stin25 in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2009, 01:23 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