+ Reply to Thread
Results 1 to 5 of 5

I have a folder with xlsx files beeing added monthly - how to keep adding those into combi

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    I have a folder with xlsx files beeing added monthly - how to keep adding those into combi

    I have a folder that every month my vendor drops a xlsx file into containing a table named ProductsJuly and so on - I want another workbook, that automatically looks in this folder and "discovers" new files/tables, and adds the data, so I always have a combined table of all products - but I cant seem to figure out how to set it up, I can discover the folder via the DATA tab, but I just extract the workbooks info (placement, date etc)

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I have a folder with xlsx files beeing added monthly - how to keep adding those into c

    Hi,

    Off hand I can think of two approaches.

    1. Every month clear the data out the current combined table, then loop through every file in the folder and re-build the table by either opening each file and copying and pasting its data, or maybe using the Data Connection Functionality.

    2. In the master workbook keep a list of every file name you've used, loop through the folder with the files, check whether the name of a file in there is also present in your list of previously used files and if not open the file and copy its data ti the next available row in your table, then add the file name to the list of file names.

    I suppose there's a 3rd option and that's to get your vendor to drop a complete history file of all your products into the folder, with a consistent name and upload that file as your table.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    Re: I have a folder with xlsx files beeing added monthly - how to keep adding those into c

    Thanks for the anwser Richard.

    As of now, it looks like theres nothing I can do but just copy/paste new data into the master/table every month.

    I was just hoping for some kind of auto-solution where the master table would discover that a new file/with table was in the folder, and it would automatically append all the new data to the Master Table...

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I have a folder with xlsx files beeing added monthly - how to keep adding those into c

    Of course I should have made clear that this would be done with a macro, not that you would need to manually undertake the task.

    Try recording a macro to perform the task. Then you'll need to modify it to build in a loop to process the files in the folder and check for previously used files.
    When you get to that stage post back with the macro you've captured.

  5. #5
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    Re: I have a folder with xlsx files beeing added monthly - how to keep adding those into c

    Again Richard, I thank you for your time to anwser, but you have way to high hopes for my skill-level ;-P

+ 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. Pull data from csv files added into a network folder
    By aaron_burr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-23-2014, 11:42 AM
  2. macro needed to find and replace particular string in all xlsx files in a folder
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2014, 05:12 PM
  3. [SOLVED] Looping through all files in a folder - save as xlsx
    By Emse_ in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-18-2014, 02:15 PM
  4. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  5. [SOLVED] Can Excel do calculations ie count number of .xlsx files in a specific folder on pc
    By blacktie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2013, 06:13 AM
  6. How to add the columns data of several xlsx files of a folder in another xlsx file
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2012, 04:29 AM
  7. Macro to open & close mutiple xlsx files in folder
    By bernard.x in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-20-2012, 06:18 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