+ Reply to Thread
Results 1 to 3 of 3

VBA When running code can other work not be active to speed things up?

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    norwich
    MS-Off Ver
    365
    Posts
    107

    VBA When running code can other work not be active to speed things up?

    Hi,

    I have two workbooks open which are quite complex. Each with a set of code which does various things - the two workbooks are not linked in anyway whatsoever, I just require both to be open to do my job.

    Is there a way where if I run code the other workbook becomes completely inactive until the code finishes? Each work book when running code runs reasonably fast, but with both open it's much slower. I know I can close and reopen when done but was just wondering if this was feasible?

    Thanks for any help
    Sean

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,910

    Re: VBA When running code can other work not be active to speed things up?

    Try using this at the top of your macro:

    Please Login or Register  to view this content.
    And this at the bottom:

    Please Login or Register  to view this content.
    You can make those into separate subs that you can call, as long as xlCalc is declared as a global instead of local.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    03-05-2015
    Location
    norwich
    MS-Off Ver
    365
    Posts
    107

    Re: VBA When running code can other work not be active to speed things up?

    LOVE this!!

+ 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. How to avoid cell SELECTION but still format cells to speed up the macro running speed
    By BeefyBerts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2018, 08:18 AM
  2. [SOLVED] VB CODE Running from active sheet
    By hkbhansali in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-30-2018, 12:11 PM
  3. Replies: 6
    Last Post: 11-29-2017, 03:00 AM
  4. [SOLVED] Setting Print area with VBA code on active sheet - Can't get my code to work
    By hans302 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2017, 05:07 AM
  5. Speed up code, disable calculation on all sheets except active
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 06:09 AM
  6. How to improve the running speed of this VBA macro code?
    By sellim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 01:45 PM
  7. Running code in one open workbook another active
    By shumba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2010, 04:20 AM

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