+ Reply to Thread
Results 1 to 4 of 4

Speed up code, disable calculation on all sheets except active

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Speed up code, disable calculation on all sheets except active

    Hi,

    I have built a very simple form where the enduser fills in a few information, which after pressing a button are being saved on the "data" sheet. you can see the vba code below:

    Please Login or Register  to view this content.
    Now, the problem is that I am pulling a rather complex data analysis on the "summary" sheet of the same workbook, which is full with sumproduct formulas and takes quite the edge off the ancient office computers that my company is using. What I want to do is to disable the Excel formula calculation in the entire workbook EXCEPT the "form" sheet, and after the job is done, turn the calculation back on WITHOUT refreshing it.

    I also disabled several events etc. to speed things up, but the main performance issue always the formula calculation on the "summary" sheet.

    Any ideas?
    Thanks,

    A2k

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Speed up code, disable calculation on all sheets except active

    Turning on the calculation will initiate the auto calculation by default.

    Why don't you convert the sumproduct formulas (if it is not referring to external workbook) to Sumif(s) for speeder calculation?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Speed up code, disable calculation on all sheets except active

    May be let the calculation to occur to specific sheets instead of whole workbook so that you can control the calculation eventhough it is Turned Off.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: Speed up code, disable calculation on all sheets except active

    Thanks guys, I changed most of the formulas to COUNTIF instead and it runs much faster now. Appreciate it.

+ 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. [SOLVED] How to change code so that it works in all active sheets
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 10:38 PM
  2. Replies: 2
    Last Post: 09-20-2012, 11:54 AM
  3. Replies: 0
    Last Post: 08-15-2012, 08:13 AM
  4. Option button (active control) code to perform a calculation
    By Taggsuk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2008, 07:00 PM
  5. Disable calculation on selected sheets only
    By MikeTNT in forum Excel General
    Replies: 7
    Last Post: 11-12-2006, 01:41 PM

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