+ Reply to Thread
Results 1 to 2 of 2

CalculateBeforeSave when 'Save As' PDF

  1. #1
    Registered User
    Join Date
    10-29-2018
    Location
    Adelaide, Australia
    MS-Off Ver
    365
    Posts
    1

    CalculateBeforeSave when 'Save As' PDF

    Hi

    We have a workbook that cycles through retail store P&Ls and saves down as a PDF. The file is large and the calculations are complex, so the total workbook calculation time is about 2 minutes.

    I can't seem to stop it recalculating the whole workbook for each save - have tried the Application.CalculateBeforeSave = False at the start of the macro but this only seems to work when I'm saving as an excel file.

    Is there a way to disable saving the same way for the Save As when it is a PDF? Or is there an add in people have used successfully to achieve the same?

    There are other options, e.g. save each P&L as a pasted values worksheet then cycle through those and convert to PDFs but looking for a quick win.

    Any thoughts/assistance? Have done a lot of searching and the absence of an answer suggests there might not be one...

    Cheers
    Steve

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: CalculateBeforeSave when 'Save As' PDF

    I have not had this situation--does it recalculate if you print? If not, then you can print to a virtual PDF device, like FoxIt PDF or Microsoft PDF. Select the PDF printer then code it to print instead of ExportAsFixedFormat.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Application.CalculateBeforeSave not working.
    By radddogg in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-01-2017, 08:30 AM
  2. Replies: 1
    Last Post: 04-29-2016, 11:55 AM
  3. Macro to Auto save a backup copy in a seperate location OR save file with a pop up
    By kdsanderson30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2014, 12:38 PM
  4. Templates - Forcing Save as rather than Save on first save
    By Spitinyari in forum Excel General
    Replies: 4
    Last Post: 04-26-2012, 11:32 AM
  5. Disable Save As and Save - enable Save via button
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2011, 05:42 PM
  6. [SOLVED] How to diasble save and save as menu but allow a save button
    By hon123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2006, 04:55 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