+ Reply to Thread
Results 1 to 4 of 4

turn off/on automatic calc upon open/close workbook?

  1. #1
    wdeleo
    Guest

    turn off/on automatic calc upon open/close workbook?

    I am giving up on my code ... it runs so damned slow with auto calc on and I
    just don't know why. With calc set to manual and calc calls within the code,
    all runs well. So ...

    Could someone please tell me how I can turn calc to manual upon opening my
    workbook and then turn it back to auto upon closing? I need the user to find
    it seemless and not a hassle.

    TIA
    WD

  2. #2
    Die_Another_Day
    Guest

    Re: turn off/on automatic calc upon open/close workbook?

    Application.Calculation = xlCalculationManual
    Application.Calculation = xlCalculationAutomatic
    Die_Another_Day
    wdeleo wrote:
    > I am giving up on my code ... it runs so damned slow with auto calc on and I
    > just don't know why. With calc set to manual and calc calls within the code,
    > all runs well. So ...
    >
    > Could someone please tell me how I can turn calc to manual upon opening my
    > workbook and then turn it back to auto upon closing? I need the user to find
    > it seemless and not a hassle.
    >
    > TIA
    > WD



  3. #3
    wdeleo
    Guest

    Re: turn off/on automatic calc upon open/close workbook?

    Great, but how do I go about running that line of script upon opening the
    workbook? How do I tell Excel to use manual calc for ONLY this workbook?
    What if the user has another workbook open at the same time?

    Thanks


    "Die_Another_Day" wrote:

    > Application.Calculation = xlCalculationManual
    > Application.Calculation = xlCalculationAutomatic
    > Die_Another_Day
    > wdeleo wrote:
    > > I am giving up on my code ... it runs so damned slow with auto calc on and I
    > > just don't know why. With calc set to manual and calc calls within the code,
    > > all runs well. So ...
    > >
    > > Could someone please tell me how I can turn calc to manual upon opening my
    > > workbook and then turn it back to auto upon closing? I need the user to find
    > > it seemless and not a hassle.
    > >
    > > TIA
    > > WD

    >
    >


  4. #4
    NickHK
    Guest

    Re: turn off/on automatic calc upon open/close workbook?

    Application.Calculation, by definition, is an application-wide setting, so
    will affect all open workbooks. If that is a problem, just switch to manual
    whilst your code is running:
    With Application
    .Calculation = xlCalculationManual
    'Your Code
    .Calculation = xlCalculationAutomatic
    End With

    NickHK

    "wdeleo" <[email protected]> wrote in message
    news:[email protected]...
    > Great, but how do I go about running that line of script upon opening the
    > workbook? How do I tell Excel to use manual calc for ONLY this workbook?
    > What if the user has another workbook open at the same time?
    >
    > Thanks
    >
    >
    > "Die_Another_Day" wrote:
    >
    > > Application.Calculation = xlCalculationManual
    > > Application.Calculation = xlCalculationAutomatic
    > > Die_Another_Day
    > > wdeleo wrote:
    > > > I am giving up on my code ... it runs so damned slow with auto calc on

    and I
    > > > just don't know why. With calc set to manual and calc calls within

    the code,
    > > > all runs well. So ...
    > > >
    > > > Could someone please tell me how I can turn calc to manual upon

    opening my
    > > > workbook and then turn it back to auto upon closing? I need the user

    to find
    > > > it seemless and not a hassle.
    > > >
    > > > TIA
    > > > WD

    > >
    > >




+ 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