+ Reply to Thread
Results 1 to 6 of 6

Disable auto calculating on open for specific file

  1. #1
    Registered User
    Join Date
    02-22-2020
    Location
    Portugal
    MS-Off Ver
    Office 365
    Posts
    4

    Disable auto calculating on open for specific file

    Hi!

    I have a file that as to do a lot of index/match calculations. It is to display machine status over the day and it has a row for every minute of the day, then I run a macro to merge all minutes of the same status to look like a graph/timeline/heatmap kind of thing. It's a form, I have the original file with the database empty, I copy that file, open, paste the data, run the macro and print. So I always use a fresh file.

    The problem is that it takes like 30 sec / 45 sec to recalculate everything. When I open the file it takes 30 seconds to calculate an empty database, when I paste the data it takes another 30 seconds. The question here is, how can I eliminate the first calculation when opening the file?

    I don't want to use the manual/auto calculate option as that defeats the purpose of fewer clicks, I just want to disable auto-calculate on open (on this specific file), but enable it for everything else. I'm fine with a VBA solution (as the file already as VBA in it).

    Thank you all and I hope I was clear, I'm from Portugal soo put my thoughts into another language isn't easy!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Disable auto calculating on open for specific file

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    02-22-2020
    Location
    Portugal
    MS-Off Ver
    Office 365
    Posts
    4
    Thank you! And how should I trigger automatic calculations again once I paste the data?
    Last edited by AliGW; 02-22-2020 at 09:20 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Disable auto calculating on open for specific file

    You have choices.

    1. Select the Formula Tab. Select "Calculate Now"

    2. Create a Button to run the Macro Below

    Please Login or Register  to view this content.
    3. Create A new Tab. Colour It Red. Call it Calculate and use that to force calculation.

    Right Click on the Sheetname at the bottom of excel. Select view code.
    Paste this code in the module that opens and close it.
    You will probably need the Macro Test in a Normal Macro Module
    Change "Sheet1" to your sheet name.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 02-22-2020 at 10:32 AM.

  5. #5
    Registered User
    Join Date
    02-22-2020
    Location
    Portugal
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Disable auto calculating on open for specific file

    Thank you. I was thinking, if manual calculations is an option for each file, I can save that file with manual calculation and then have a macro to just activate it! Thank you for your help

  6. #6
    Registered User
    Join Date
    02-22-2020
    Location
    Portugal
    MS-Off Ver
    Office 365
    Posts
    4
    Monday I will post a reply with the solution I applied if there is no new ideas.

+ 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. Disable auto save for a specific workbook
    By Neilesh Kumar in forum Excel General
    Replies: 2
    Last Post: 11-20-2017, 06:26 AM
  2. How to disable auto fill formula from table but only specific column
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2017, 07:38 AM
  3. Replies: 12
    Last Post: 06-07-2011, 04:17 AM
  4. open a file programically and disable macros
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2009, 11:45 AM
  5. [SOLVED] how to open xla file in automation way with disable macro
    By Arnaud in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2005, 06:05 AM
  6. how to open xla file in automation way with disable macro
    By Arnaud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2005, 10:05 AM
  7. Disable Addin Menu when file not open
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 04:06 AM

Tags for this Thread

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