+ Reply to Thread
Results 1 to 4 of 4

Macro extract data from multiple files

  1. #1
    Registered User
    Join Date
    11-04-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    7

    Macro extract data from multiple files

    Hi

    I have a number of files (50) in a given location and all have the same template but colleagues complete information in them at the end of each month. I would like a macro that can extract say cells A1 and D9 and populate them in an open file.

    Can someone give me a steer on some VBA?

    Thanks

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Macro extract data from multiple files

    Easier (and quicker) to use Power Query (Get & Transform Data).

    Attach a sample workbook showing the structure of your source file(s) and another showing your required output.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-04-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Macro extract data from multiple files

    Thanks Olly. Have not heard of Power Query. Happy to try anything!

    To be honest, haven't got anything to share in terms of a file. For now, think a blank spreadsheet (which is what it's likely to be) and all i want to do is point at various files and extract certain cells. Sorry if that sounds vague!

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Macro extract data from multiple files

    Okay - hard to give specific advice / solutions, without a requirement.

    Your starter for 10, though - this query will combine data from all Excel files in a folder:

    Please Login or Register  to view this content.

+ 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. Extract data from Multiple excel files
    By rajani85 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2015, 02:48 PM
  2. Macro to extract multiple segments of data from files
    By tomuk19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 10:06 AM
  3. Use VBA to extract data from multiple files
    By JCHC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2013, 12:03 PM
  4. extract certain files from multiple zip files macro
    By rdiddy54 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-13-2012, 11:07 PM
  5. Need Macro to open and extract data from from multiple txt files
    By Sun Devil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2012, 12:25 PM
  6. Help me with a Macro to extract data from multiple files without opening them?
    By matador_24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2011, 03: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