+ Reply to Thread
Results 1 to 5 of 5

Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    8

    Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

    I have a workbook with multiple worksheets and I want this workbook, and all of the worksheets to be set to "Manual Calculations" but don't want to turn off "Automatic Calculations" for ALL of Excel.

    I have entered this code in each worksheet and added it as a Module to the Workbook but it isn't working:

    Please Login or Register  to view this content.
    Am I entering it in the wrong place, is it the wrong code, am I just missing something or all of the above?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

    That code only goes into the individual sheet modules, not inserted code modules.

    Also, you will want to create Workbook_BeforeClose() event in the ThisWorkbook module that sets things back to "automatic" as well in case they close that workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

    Thank you for your reply.

    2 Things:
    1) When I enter it into the individual sheets it still automatically calculates. I have saved the workbook, closed it, reopened it and it still automatically calculates so the code isn't working.
    2) I don't know how to create an event, I just copied this code from the forum.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

    Right now your macros look backward to me. It seems you would want Excel to be in Automatic mode EXCEPT when you are on specific sheets, your current macros seem to be doing the opposite, so try switching them around first.

    Another way is to create a SINGLE macro in the ThisWorkbook module to handle this as you change sheets within the workbook. Also a couple of other workbook events to make sure calculation is on if you switch to another workbook"

    All of this in the ThisWorkbook module:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-25-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Turn Off Automatic Calculations for Single Worksheet or Workbook, NOT ALL WORKBOOKS

    Worked perfectly, thank you so much for the help!!!

+ 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. Turn off calculations before query refresh....turn them back on after
    By mk3ll00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2014, 03:25 PM
  2. [SOLVED] Create single worksheet from multiple workbooks with 4 worksheets in each workbook
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2013, 03:35 AM
  3. Store summary calculations for each worksheet in a single worksheet
    By rgilpatric in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2012, 04:45 PM
  4. copy a single column from mutiple workbooks into a single workbook
    By Savan87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2011, 11:27 AM
  5. [SOLVED] turn off/on automatic calc upon open/close workbook?
    By wdeleo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2006, 12:40 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