+ Reply to Thread
Results 1 to 14 of 14

Auto-Calc issue

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2004
    Posts
    41

    Re: Auto-Calc issue

    Quote Originally Posted by curiouscat408 View Post
    @Russ.... Can you remove the "[SOLVED]" tag for the thread, since the problem has not, in fact, been solved to your satisfaction?



    .... When you do what, or when what happens?!

    Do any of your VBA modules "temporarily" set Manual mode?

    And do you have any third-party VBA code?

    My guess is that some VBA code accidentally leaves the calculation mode in Manual when it terminates or aborts.
    Post #1 marked unsolved.

    This occurs every time I open the WB. IE, I can go to the menu bar, set calcs to auto, close the WB, reopen the WB and it shows set back to manual. Getting late here so I'll try your debugging tips tomorrow, thanks!

    No manual calc set anywhere in any code.

    No 3rd party add-ins at all. I do have this date picker, but it only gets called by a button placed on the main WS, and I've avoided doing that while trying to figure this out.

    I've also "compiled" the VBA code (never knew what that did until snooping around here!) and it throws no errors.

    Any insight on that debug window as far as event order? Looks like the iterated WS_Calculate events are running first, then the macro "borders", finally WB_Open. Is that the correct order in the immediate window or am I backwards?

    Thanks!

    Russ

  2. #2
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Auto-Calc issue

    Quote Originally Posted by RASelkirk View Post
    I'll try your debugging tips tomorrow
    Probably no need, based on the following.

    -----
    Quote Originally Posted by RASelkirk View Post
    This occurs every time I open the WB. IE, I can go to the menu bar, set calcs to auto, close the WB, reopen the WB and it shows set back to manual.
    When you "set calcs to auto, close the WB", do you get prompted to "save" or "don't save"? And if so, which do you choose?

    Assuming that you choose "save", I would guess that there is a problem in the Workbook_Open (or Auto_Open) and/or the Workbook_BeforeSave code path.

    If you do not have either procedure, and even if you do, if you truly do not set Application.Calculation anywhere in your code or in third-party code, I'm afraid that I have run out of ideas, and I will not be able to help you.

    I would start stripping away functionality until (if) the problem goes away.

+ 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. User form calc, passing variables,cmb box issue
    By pecan111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2016, 08:21 AM
  2. Auto Calc
    By aresquare1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2015, 09:06 AM
  3. Solver Calc Times - Same old issue
    By B_B in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2013, 10:35 PM
  4. Auto-Calc Problems
    By mindcrash in forum Excel General
    Replies: 2
    Last Post: 06-08-2007, 04:05 PM
  5. Auto calc
    By Jkalsch in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-15-2006, 10:30 AM
  6. Auto Calc
    By ScottS in forum Excel General
    Replies: 0
    Last Post: 02-27-2006, 02:35 PM
  7. auto calc on, but have to edit (f2) cells to force re-calc..help!
    By Curt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2006, 02:10 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