+ Reply to Thread
Results 1 to 4 of 4

Macro changing calculation to manual not working

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Angry Macro changing calculation to manual not working

    Hi there,

    I have macro that I run each day that opens a series of CSV files and pastes the content into a report spreadsheet. Because there are lookup formulae connected to the data, I am using a line of code in the macro (Application.Calculation = xlCalculationManual) to change Excel to manual calculation mode before running the rest of the macro, then change back to automatic again after it is complete.

    The problem is that when Excel opens and pastes the data, it recalculates automatically despite being set to manual. I have gone through the code and I'm sure the change is working, and I've even used msgbox to report the calculation mode at each step of the process and it shows manual all the way through, but it is still automatically calculating.

    Can someone help point me in the right direction as to what I might be missing here? Calculation should be controlled at the application level rather than the workbook or worksheet level, so there shouldn't be settings in any of the files that are causing it, and they are csv files so there are no macros in any of them that could be resetting it. I'm also doing the change to manual calculation before I open the files, just in case it could be picking up that calculation was automatic when they were first opened.

    Is this an issue with Excel or am I doing something wrong here? I'm running Excel 2003 on a Windows XP system if that helps identify the problem.

    Thanks
    Alexis

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro changing calculation to manual not working

    Hi,

    Are the cells that are being calculated linked to another document? If so does the following answer your query. Change the setting if so

    http://support.microsoft.com/kb/110006
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro changing calculation to manual not working

    Thanks Richard,

    No, the formulae aren't linked to another workbook, but they do look at the sheet where the data is pasted.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro changing calculation to manual not working

    In that case can you upload the workbook and a csv file so that we can check?

+ 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