+ Reply to Thread
Results 1 to 2 of 2

Macros to pull data from multiple files

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    California, US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macros to pull data from multiple files

    I have to collect data from production wells we have at our power plant, mainly pressure, temperature, and flow. The Control Operators at our plant generate an excel workbook every day, all with the same format. Each file is named according to the date (e.g. "07-20-11.xlsx, 07-21-11.xlsx, 07-22-11.xlsx, etc). I want to be able to have a master file with all the dates on the A column, and to be able to collect pressure, temperature, and flow from the said dated files (the location of pressure, temperature, and flow is constant on every file).

    Using the example files I uploaded, "wells copy for excel.xslx" would collect the data from "07-20-11 EXAMPLE.xlsx" for date 07-20-11, from "07-21-11 EXAMPLE.XLSX" for 07-21-11 and so on. None of the dated files will be open.

    I'm new to this macros/vba, and I suck at programming, so if you can help me out I'll appreciate it. I have to do similar things for a lot of files and manually changing file names just takes forever.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macros to pull data from multiple files

    hi, danrub25, please save and unzip attachment, open "Wells copy for excel.xlsm" and run code "test". When select folder dialog appears, choose this very folder (there are four files for different dates inside) with files to be processed.
    Attached Files Attached Files
    Last edited by watersev; 08-05-2011 at 06:47 PM.

+ 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