+ Reply to Thread
Results 1 to 4 of 4

Manual vs Automatic Calculations - Safety at Risk - Engineering Help

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    AB
    MS-Off Ver
    Excel 2010
    Posts
    2

    Manual vs Automatic Calculations - Safety at Risk - Engineering Help

    At my work, we populate an Excel form. The form does a few calculations that are the basis for programming some pumps. If the pumps are programmed wrong, they can burst the piping which is a safety issue.

    Is there any way to absolutely (with 100% certainty) to force Excel to always be in automatic calculation mode? Or at least to be in automatic calculation mode when we print the form? We often have multiple sheets open, and some of them are in manual calculation mode. This can lead to the calculation mode inadvertently getting turned off in our form. Because safety is at risk, I need a way to ensure this sheet never gets switched. I know know how to write a VBA module to ensure the sheet opens in automatic mode, but I don't know how to prevent this from happening while the sheet is open.

    At present, our best solution to this problem is to verify the calculations by hand.


    Thank you in advance.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,033

    Re: Manual vs Automatic Calculations - Safety at Risk - Engineering Help

    Try adding this event code to the Thisworkbook object's Codemodule:

    Please Login or Register  to view this content.
    Once you have finished testing to ensure it works, you can try simplifying to just
    Please Login or Register  to view this content.
    Or use a macro to print

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 03-18-2014 at 09:51 AM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    AB
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Manual vs Automatic Calculations - Safety at Risk - Engineering Help

    Bernie, these are helpful. I should have mentioned one other detail. We get the vendor of the pump to populate the form, and then PDF it and send it back to us. How do I know if they have the macros enabled when they PDF it and send it back to me? I like the last macro you mentioned. How do I know they printed the form to PDF using this macro? I could have the code put something in a cell indicating the sheet was printed using the macro with calculations enabled. But if they save that sheet, and use it for populating information for other pumps, then there is no guarantee that they are then printing with the macro.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,033

    Re: Manual vs Automatic Calculations - Safety at Risk - Engineering Help

    That is a more complicated situation - it would require that the vendor have macros enabled when they open the workbook, and keep them enabled the whole time. At some point, it just becomes impossible to ensure that they have done everything correctly, but one way would be to produce the sheet that they must print to the PDF by using a macro. And then you need to ensure that the sheet was actually produced by the macro and not just overwritten and then re-printed. I think that one way would be to create a new sheet by copying the output form, then inserting a new row into the print area and - using code - insert a date time stamp and a hashed value that is generated from the date using the macro. Lock the project so that they cannot view it - not great, but better than nothing - and then check that the hash value matches what you would expect given the date time stamp.

    Or change how you work - don't accept a PDF, but require the originating workbook, and then send the vendor a PDF that they confirm as correct before proceeding.

+ 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. Workbook Macro to change calculations from manual to automatic?
    By Phil_Packer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2013, 12:39 AM
  2. Replies: 0
    Last Post: 06-09-2011, 10:31 AM
  3. [SOLVED] Automatic and manual calculations
    By Muttley in forum Excel General
    Replies: 0
    Last Post: 03-20-2006, 11:10 AM
  4. [SOLVED] RE: Automatic and manual calculations
    By bpeltzer in forum Excel General
    Replies: 0
    Last Post: 03-20-2006, 10:55 AM
  5. [SOLVED] Difference btween Automatic and Manual calculations.
    By WannaBeExceller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2006, 05:30 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