Calculation Mode

K

Kevin H. Stecyk

Calculation Mode.

I want to determine the user's calculation mode. Then change it to manual.
Once the subroutine is complete, I then want to set the calculation mode
back to original setting. How do I do that?

Regards,
Kevin
 
N

Norman Jones

Hi Kevin

Sub Tester()
Dim CalcMode As Long

With Application
CalcMode = .Calculation
.Calculation = xlCalculationManual
End With

',,,,,,,,,,,,,,Your Code

With Application
.Calculation = CalcMode
End With

End Sub
 
K

Kevin H. Stecyk

Norman Jones...
Hi Kevin

Sub Tester()
Dim CalcMode As Long

With Application
CalcMode = .Calculation
.Calculation = xlCalculationManual
End With

',,,,,,,,,,,,,,Your Code

With Application
.Calculation = CalcMode
End With

End Sub

Norman,

That is exactly what I would looking for. Thank you very much.

Best regards,
Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top