+ Reply to Thread
Results 1 to 2 of 2

VBA to enable auto calculation after copying worksheet

  1. #1
    Registered User
    Join Date
    10-26-2004
    Posts
    22

    VBA to enable auto calculation after copying worksheet

    I have a file that links in several different datasources. What I am doing is updating all my sources, running all my calculations then producing "results" sheets. I have several seperate reports being generated from the same data. I am copying the worksheet into a new workbook then saving, emailing, then going onto the next. Problem is when the users open that file their calculation is set to manual because I am manually calculating everything to speed up processing time. If i enable auto calculation after copying the worksheet it calculates my entire workbook, then saves, and goes onto the next. Each time it auto calculates it takes 15 minutes. With manual calc its 2 minutes. How can i make it so that my main file always has auto calc off but make it so that when users open the seperate file auto calc is enabled?

  2. #2
    Registered User
    Join Date
    10-26-2004
    Posts
    22

    nevermind

    Nevermind.... Ive been looking for a solution to this for several hours tonight and I finally found something that will work!

    Built a module... built in my auto_open macro with the line to enable automatic calcuation.... exported the module then put this in all my reports before it saves them...

    Application.VBE.ActiveVBProject.VBComponents.Import ("R:\automatic reports\autocalc.bas")

    I hate to say it but MREXCEL gets the credit this time...
    http://www.mrexcel.com/tip043.shtml

+ 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