Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Disable and enable auto calculation

I would like to disable calculation before my code and Enable calculation
after my function.

Can you please let me know what is the functionm I can use?

Thanks in advance,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Disable and enable auto calculation

Hi Souris,

Try something like:

Public Sub XYZ()
Dim CalcMode As Long

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

'Your Code

Application.Calculation = CalcMode

End Sub

---
Regards,
Norman

"Souris" wrote in message
...
I would like to disable calculation before my code and Enable calculation
after my function.

Can you please let me know what is the functionm I can use?

Thanks in advance,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable the pop up for enable auto update? Eric Excel Discussion (Misc queries) 2 April 16th 10 05:12 AM
Enable/Disable Macro Pop-Up juamig Excel Discussion (Misc queries) 5 April 12th 10 02:57 PM
How to enable / disable re-calculation option? Eric Excel Discussion (Misc queries) 3 April 9th 10 03:15 AM
enable/disable auto-convert a NUMBER to DATE Harry Nopter Excel Discussion (Misc queries) 4 April 20th 09 01:43 PM
Enable/Disable Macro Brandon[_5_] Excel Programming 0 June 1st 04 06:36 PM


All times are GMT +1. The time now is 07:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"