+ Reply to Thread
Results 1 to 3 of 3

calculate not working, or just sometimes

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    calculate not working, or just sometimes

    Hello. In the code below. I have the settings on manual and then I calculate and paste special values. The problem is that sometimes the calculate works and sometimes it doesn't (there are just values of 0 copy and pasted). Why might this be?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: calculate not working, or just sometimes

    Hi,

    When your code hits this line:

    Application.Calculation = xlCalculationManual

    Excel will stop calculations until you turn it back on again or tell it to specifically calculate.

    I see that you have two lines of:

    ActiveSheet.Calculate.

    This should make the active sheets recalculate, but what sheet is active? ALSO the sheets might be calculating but you have also turned off your ScreenUpdating so you might not be seeing the current calculations.

    I hope one of the above hints gives you an answer.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: calculate not working, or just sometimes

    I noticed that if I don't move the mouse at all when it's running it tends to work correctly? Is tehre a way that I could modify the calculate piece. Maybe after all of the loops, instead of during each loop?

+ 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. Replies: 2
    Last Post: 06-14-2013, 10:45 AM
  2. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  3. Calculate working hours
    By imran91 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-07-2012, 09:26 PM
  4. Calculate working hours
    By imran91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 06:22 AM
  5. Calculate 7th Working day
    By antoanand1981 in forum Excel General
    Replies: 3
    Last Post: 10-29-2012, 02:18 AM
  6. Working Hr. calculate
    By Rahul Nagar in forum Excel General
    Replies: 5
    Last Post: 06-16-2009, 10:44 AM
  7. Calculate Working Hours
    By Kolacube in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2008, 05:19 AM
  8. auto calculate not working
    By Noarmom in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-27-2006, 10:45 AM

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