ThrottleWorks
Excel Ninja
Hi,
I am using following loop.
The following loop takes around 20 minutes to run if I do not change calculation to manual.
But if I change the calculation to Automatic the loop get completd in less than 1 minute.
Application.Calculation = xlManual
Do Until Cells(J, 1) = ""
Cells(J, 21).Resize(1, 2).Value = Cells(J, 23)
Cells(J, 52) = Cells(J, 52) + Cells(J, 48)
Cells(J, 56) = Cells(J, 56) + Cells(J, 48)
Cells(J, 49) = 0
J = J + 1
Loop
Application.Calculation = xlAutomatic
I want to confirm with the experts, is it right to use loop with calculation on manual mode.
I am checking the results for both Auto and Manual, till now both are same.
But I have to check it more to make sure I am not doing any mistake.
I am not able to understand why one code takes 20 minutes & another 1 minutes for same process.
Till now I have checked the results for 4 pairs but results are same.
Can anyone help me in this please.
I am using following loop.
The following loop takes around 20 minutes to run if I do not change calculation to manual.
But if I change the calculation to Automatic the loop get completd in less than 1 minute.
Application.Calculation = xlManual
Do Until Cells(J, 1) = ""
Cells(J, 21).Resize(1, 2).Value = Cells(J, 23)
Cells(J, 52) = Cells(J, 52) + Cells(J, 48)
Cells(J, 56) = Cells(J, 56) + Cells(J, 48)
Cells(J, 49) = 0
J = J + 1
Loop
Application.Calculation = xlAutomatic
I want to confirm with the experts, is it right to use loop with calculation on manual mode.
I am checking the results for both Auto and Manual, till now both are same.
But I have to check it more to make sure I am not doing any mistake.
I am not able to understand why one code takes 20 minutes & another 1 minutes for same process.
Till now I have checked the results for 4 pairs but results are same.
Can anyone help me in this please.