+ Reply to Thread
Results 1 to 2 of 2

4folders, 4files (file names change weekly) merge into one master file, as needed

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    3

    4folders, 4files (file names change weekly) merge into one master file, as needed

    I'm new to VBA (unless it's recording a simple MACRO).

    I have 4 separate folders, with 4 separate files (one tab in each file) and the title of the files change weekly. The columns are all the same in each file (A-S, A is usually blank and not needed so really B-S). However, the number of rows are always changing depending on the workload. I want to be able to run a macro that copies all 4 files into one master file (one tab only).

    Folders: Chicago Central, Des Plaines, Joliet-Blue Island & Oak Brook
    Files: Chicago **-** JWA's, DesPlaines **-** JWA's, Joliet-Blue Island **-** JWA's & OakBrook **-** JWA's (the **-** is the part that changes depending on the date/week). Once there is a new week the "old" file is moved to another folder and a new file is created.
    Master file: Merged Drafting Workload (currently, I manually copy and paste the 4 files into the master file as needed).

    Any help would greatly be appreciated.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: 4folders, 4files (file names change weekly) merge into one master file, as needed

    In the master file, do you need to keep track of the original file the data comes from?
    From where will the macro be called? One of the workbook or do you want to create a macro in your personnel macro folder?
    I supposed there is, at any time, only one file in each folder. Right?
    What will be the name of the master file? Do you want to have a prompt asking for it or the macro will create it automatically? I think you would like to have the date/week data be part of the name. Don't you?
    Last edited by p24leclerc; 11-01-2012 at 08:42 PM.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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