+ Reply to Thread
Results 1 to 7 of 7

Automatic calculation only for the tab not for the whole excel-sheet

  1. #1
    Registered User
    Join Date
    12-02-2015
    Location
    Friesland, Nederland
    MS-Off Ver
    2007
    Posts
    4

    Automatic calculation only for the tab not for the whole excel-sheet

    Hi all,

    I have made a large excel sheet with a lot of tabs.
    The excel-sheet is starting to get slow expecially when I put more and more tabs in it.

    When I am in a tab and I am changing a cell, I dont want the excel-sheet to recalculate all the formulas in the whole excel, I only want the excel to recalculate the current tab (automaticly).

    I know there is an option to set the calculation on manual, and with F9 I can manual calculate the whole excel-sheet and with shift+F9 I can calculate only the tab.
    I want to use the function "shift+F9" to calculate only the current tab, but not manual but automatic.

    Does someone know if it is posible and how I can activate it?

    Greets,
    Knoert

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    The only option I can see involves you adding a small amount of VBA to each worksheet

    Please Login or Register  to view this content.
    This will recalculate the active worksheet whenever anything changes on it but wont calculate anything else.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    12-02-2015
    Location
    Friesland, Nederland
    MS-Off Ver
    2007
    Posts
    4

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    Thanks for your responce!!!

    This could be a good solution.

    I am not very familiour with VBA, I can paste your VBA-code in VBA but I dont really know where to place it.

    Can you tell me where I have to place it to get it working?

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    1.Press Alt-F11 to open the VBA editor (or select Visual Basic from the Developer tab)
    2.Down the left hand side you'll see Project details which should have an entry in the list for the workbook you're looking at, click the little + next to the name to open the list of Objects within the file.
    3. Each of your worksheets should be listed usually with Sheet1, Sheet2 etc with the name of the sheet in brackets after)
    4. Clicking one of these will open a space for code on the right hand side (what should generally be blank)
    5. Theres 2 drop downs at the top, clicking the 1st one will give you (General) and Worksheet, select Worksheet
    6. This will then populate the sheet with the start of a new Sub routine.
    7. Theres nothing harmed in leaving that there and pasting this code below but in the interests of tidyness I would remove that and paste the code into it.
    8 Repeat steps 4 - 7 for each sheet you want this in.

  5. #5
    Registered User
    Join Date
    12-02-2015
    Location
    Friesland, Nederland
    MS-Off Ver
    2007
    Posts
    4

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    Thank you! I have made a test file with it, and it works!!!

    Is there a little option to add to the VBA?

    The option you gave only works when the calculation is set to manual.

    Is there an option that I just have the calculation set to automatic, and in the active worksheet VBA cancels the automatic calculation (without changing the setting for excel) then calculates the active sheet?

    Thank you for helping me!!!

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    You can help yourself by making sure that you don't have a bunch of redundant calculations and that each worksheet is actually needed. I have seen a lot of workbooks with multiple tabs that could be eliminated simply by using the Autofilter on the main data worksheet.

    Is the data on each worksheet laid out in such a manner that calculations and not jumping back and forth and up and down the worksheet?
    Are the formulae as efficient as possible?

    These urls may help you optimize your workbook
    http://www.techrepublic.com/blog/10-...ntly-in-excel/
    https://msdn.microsoft.com/en-us/lib...ice.14%29.aspx
    http://www.ozgrid.com/Excel/ExcelSpreadsheetDesign.htm

    There are lots of other sites with tips so treat these as just a start.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    12-02-2015
    Location
    Friesland, Nederland
    MS-Off Ver
    2007
    Posts
    4

    Re: Automatic calculation only for the tab not for the whole excel-sheet

    pjwithfield I solved the problem this way:

    I adding the following lines to the workbook:

    Private Sub Workbook_Activate()
    Application.Calculation = xlCalculationManual
    End Sub

    Private Sub Workbook_Deactivate()
    Application.Calculation = xlCalculationAutomatic
    End Sub


    This way, the settings wont effect other excelsheets.

    If you know a better way to do it I am still interested!! ;-)

+ 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. Excel Formula-Automatic Calculation
    By ljgriffith12 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2014, 06:11 PM
  2. Excel turns of Automatic Calculation automatically
    By Plaus in forum Excel General
    Replies: 24
    Last Post: 06-06-2013, 10:28 AM
  3. Replies: 1
    Last Post: 05-15-2013, 01:35 AM
  4. Automatic Calculation:open excel.
    By pkbravo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2006, 10:12 AM
  5. Replies: 3
    Last Post: 12-13-2005, 11:15 PM
  6. Replies: 4
    Last Post: 09-13-2005, 11:05 PM
  7. Automatic Calculation:Time sheet
    By raweber in forum Excel General
    Replies: 0
    Last Post: 08-22-2005, 03:31 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