+ Reply to Thread
Results 1 to 6 of 6

On open set calculation to manual not working all the time

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    6

    On open set calculation to manual not working all the time

    Hi,

    i'm using the below code to make calculation manual on opening a very complex workbook. This appears to work most of the time, however quite often (maybe connected to having other workbooks open) upon opening it starts calculating. Almost as if it hasn't yet ran the code below and is calculating first. Like i said, this doesn't happen all the time but it is a problem as the workbook requires 3 other workbooks to be open at the same time and is to be used by people who will not know how to cancel the calculation.

    Is this a bug and is there a fix for this?

    The code below is in the VBAProject folder for the workbook in "ThisWorkbook":

    Please Login or Register  to view this content.

    Thanks
    Last edited by matt260384; 07-01-2009 at 11:29 PM.

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

    Re: On open set calculation to manual not working all the time

    Welcome to the forum, matt.

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-01-2009
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: On open set calculation to manual not working all the time

    Sorry, done correctly now

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

    Re: On open set calculation to manual not working all the time

    Thanks.

    I expect that calculation occurs before the Open event is triggered. You'd need to turn off calculation (via the UI or code in another workbook) before opening the other.

  5. #5
    Registered User
    Join Date
    07-01-2009
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: On open set calculation to manual not working all the time

    I see, the problem is novice users will be opening this sheet and calculation is taking about 3 minutes.

    One option would be to copy and paste values all of my vlookups but this would take a lot of code to have them rewritten for use again.

    Does anyone know of a way to get code to run upon opening excel and before the actual workbook opens?

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

    Re: On open set calculation to manual not working all the time

    I retract my earlier comment -- the Open event is triggered before calculation, so it should be working.

    Can you post a stripped-down workbook with something that makes it obvious that calculation has occurred on Open (like =NOW(), formatted as mm:ss)

+ 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