ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Stopping one sheet from calculating (https://www.excelbanter.com/excel-worksheet-functions/270851-stopping-one-sheet-calculating.html)

Xt

Stopping one sheet from calculating
 
Hi folks.

Is there a way to turn the calculation of a particular sheet off and
on using VBA while the VBA is working with data from another sheet?

Thanks

xt

DCG-jaeson

Stopping one sheet from calculating
 
Hi,

Put this first "Application.Calculation = xlCalculationManual" then
"Calculate" after running your macro.

Hope it will help!
~jaeson

DCG-jaeson

Stopping one sheet from calculating
 
On Jun 27, 10:32*am, Xt wrote:
Hi folks.

Is there a way to turn the calculation of a particular sheet off and
on using VBA while the VBA is working with data from another sheet?

Thanks

xt



Hi!

First use this "Application.Calculation = xlCalculationManual" and in
End "Calculate"

Hope it will help!
~jaeson

joeu2004

Stopping one sheet from calculating
 
On Jun 26, 7:32*pm, Xt wrote:
Is there a way to turn the calculation of a particular
sheet off and on using VBA while the VBA is working with
data from another sheet?


No. Automatic v. manual calculation mode applies to the entire
workbook, not individual sheets. In fact, I believe it applies to all
workbooks open in the same Excel instance.

However, after setting Application.Calculation=xlCalculationManual,
you can use Sheets("sheet1").Calculate to cause one worksheet to
recalculate.

Dave Peterson[_2_]

Stopping one sheet from calculating
 
Depends on the version of excel you're running.

Look in VBA's help for EnableCalculation.

If you find it (and all the versions of excel that you need to support have
it!), then read the help.




On 06/26/2011 21:32, Xt wrote:
Hi folks.

Is there a way to turn the calculation of a particular sheet off and
on using VBA while the VBA is working with data from another sheet?

Thanks

xt


--
Dave Peterson

Xt

Stopping one sheet from calculating
 
On Jun 30, 11:20*pm, Dave Peterson wrote:
Depends on the version of excel you're running.

Look in VBA's help for EnableCalculation.

If you find it (and all the versions of excel that you need to support have
it!), then read the help.

On 06/26/2011 21:32, Xt wrote:

Hi folks.


Is there a way to turn the calculation of a particular sheet off and
on using VBA while the VBA is working with data from another sheet?


Thanks


xt


--
Dave Peterson


Thanks to you all. Very helpful. xt


All times are GMT +1. The time now is 12:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com