+ Reply to Thread
Results 1 to 5 of 5

Shutting off calculation in certain areas

Hybrid View

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    5

    Shutting off calculation in certain areas

    Does anyone know if you can shut off the automatic calculation of a particluar worksheet or better yet, certain areas of a workbook, leaving the remainder of the workbook as Automatic?

    For example, a workbook with Sheets 1,2,3 and 4. Can Excel 2007 be set for automatic calculations on the entire workbook except for Sheet3?

    Thanks.
    Last edited by letitbleed; 08-26-2009 at 05:02 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Shutting off calculation in certain areas

    Welcome to the forum.

    I don't think you can do that via the UI, but you can in VBA:
    Worksheets(1).EnableCalculation = False
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-26-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Shutting off calculation in certain areas

    Thanks for the welcome.

    My problem is I am not familiar with the Visual basic end of excel. Can I just insert that command by right clicking that sheet and selecting "View Code" and inserting there?

    Thanks again.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Shutting off calculation in certain areas

    You can put these in a code module:
    Sub CalcOff()
        Worksheets(3).EnableCalculation = False
    End Sub
    
    Sub CalcOn()
        Worksheets(3).EnableCalculation = True
    End Sub
    Adding a Macro to a Code Module
    1. Copy the code from the post
    2. Press Alt+F11 to open the Visual Basic Editor (VBE)
    3. From the menu bar in the VBE window, do Insert > Module
    4. Paste the code in the window that opens
    5. Close the VBE to return to Excel

    To run one or the other, do Alt+F8

  5. #5
    Registered User
    Join Date
    08-26-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Shutting off calculation in certain areas

    Thanks for the excellent help.

+ 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