+ Reply to Thread
Results 1 to 4 of 4

Faster response: Multiple workbooks open at once, or one at a time?

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Faster response: Multiple workbooks open at once, or one at a time?

    This isn't crucial, but a best practice kind of thing I'd like to know.

    I have 15 budget analysts placed around the state, each with their own region. For the expenses for each region, each BA has one unique workbook. I'm frequently called to cull data from their workbooks and then run various routines on whatever subsection of data I'm looking for that day. My question is; would it better to open Workbook 1, copy the data I need, close workbook 1, open workbook 2, copy the data, close wkbook2 , etc. or would it be better to open Wkbooks 1-15, copy data from WB1, close WB1, copy from WB2, close WB2, etc? The second option is my standard routine right now, but it's fairly slow, so I've been thinking there may be a better way.

    More details: Each WB is a pivot table. The source is a remote database, password-protected, to which I DON'T have access. So, for each WB I have to manipulate the pivot to get the information I need.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Faster response: Multiple workbooks open at once, or one at a time?

    If it were me, and the workbooks all have the same structure, I'd have a list of the workbooks and loop through it ... open, process, close. Minimum loss of access for the users , minimum code (loop), and minimum memory overheads.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Faster response: Multiple workbooks open at once, or one at a time?

    Hmm, what you say makes sense. Maybe I'll see if I can refigure my processes. Thanks for the input.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Faster response: Multiple workbooks open at once, or one at a time?

    You're welcome.

+ 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