+ Reply to Thread
Results 1 to 2 of 2

merge multiple Workbooks to master workbook performance optimization

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    1

    merge multiple Workbooks to master workbook performance optimization

    Hi,

    Unfortunately I'm forced (at work) to use excel2000 with a system of macros which is slow as hell and I'm trying to improve things, even though I'm kinda new to VBA macros.

    The Structure is this:

    -2 Folder "Sales" "purchase" both folder have 10-30 excel files with all the same structure, 3 working sheets with a lot of data, the structure of all the files is identical (in both directories)
    -The main workbook opens all the files it finds in the directories "purchase" and "sales" sums it up and adds it to a some worksheets.


    My readout approach with pseudo code

    Please Login or Register  to view this content.

    my file opening pseudo code:
    Please Login or Register  to view this content.
    Any Idea to speed this process up? I though about merging all the different xls files for each directory in one "helper workbook", because it seems the limiting factors is to open/close all the files and check with some checksums if the files were modified or new files added to the directories and open the new files and add it to the main workbook sheets instead of open and close everytime every file eventhough nothing has changed.

    thoughts? is my problem clear?

    thanks
    Last edited by blackplatypus; 03-31-2012 at 08:43 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: merge multiple Workbooks to master workbook performance optimization

    Here's some code that I use

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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