Consulting

Results 1 to 2 of 2

Thread: Solved: manual calculation for individual workbooks

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: manual calculation for individual workbooks

    Hi,

    Is it possible to set the calculation to manual for individual workbooks. I have a workbook with many many formulae and lots of links between sheets and everytime I do something it "calculates cells" and takes forever.

    I tried to use application.calculation = xlManual but it changed this for every workbook that was open and caused other users to get confused and tense.

    Is there any way to set this for one workbook only as the workbook is slow and clunky at the moment

    Cheers

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    In ThisWorkbook module
    [VBA]
    Private Sub Workbook_Activate()
    Application.Calculation = xlCalculationManual
    End Sub

    Private Sub Workbook_Deactivate()
    Application.Calculation = xlCalculationAutomatic
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •