Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How can I toggle on and off the automatic calculations in VBA code? I have a
code that imports data from another file but when I run this code I want to be able to shut off the auto-calc until the import is done. How would I do this? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try recording a macro as you perform the action manually. That's a good way
to start learning the Excel object model. -- Jim "Secret Squirrel" wrote in message ... | How can I toggle on and off the automatic calculations in VBA code? I have a | code that imports data from another file but when I run this code I want to | be able to shut off the auto-calc until the import is done. How would I do | this? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub todostuff()
Application.Calculation = xlManual your code here Application.Calculation = xlAutomatic End Sub On Tue, 20 May 2008 07:20:01 -0700, Secret Squirrel wrote: How can I toggle on and off the automatic calculations in VBA code? I have a code that imports data from another file but when I run this code I want to be able to shut off the auto-calc until the import is done. How would I do this? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks! That works for me!
"Jim Rech" wrote: Try recording a macro as you perform the action manually. That's a good way to start learning the Excel object model. -- Jim "Secret Squirrel" wrote in message ... | How can I toggle on and off the automatic calculations in VBA code? I have a | code that imports data from another file but when I run this code I want to | be able to shut off the auto-calc until the import is done. How would I do | this? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you give a man a fish you feed him for one day. If you teach him to fish
you feed him for a lifetime. -- Jim "Gord Dibben" <gorddibbATshawDOTca wrote in message ... | Sub todostuff() | | Application.Calculation = xlManual | your code here | Application.Calculation = xlAutomatic | | End Sub | | On Tue, 20 May 2008 07:20:01 -0700, Secret Squirrel | wrote: | | How can I toggle on and off the automatic calculations in VBA code? I have a | code that imports data from another file but when I run this code I want to | be able to shut off the auto-calc until the import is done. How would I do | this? | |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Along with Excel help we are now dispensing homilies?<g
But......point taken Jim Gord On Tue, 20 May 2008 11:45:07 -0400, "Jim Rech" wrote: If you give a man a fish you feed him for one day. If you teach him to fish you feed him for a lifetime. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formulas Won't Auto Calc | Excel Discussion (Misc queries) | |||
Auto calc | New Users to Excel | |||
Auto Calc | Excel Discussion (Misc queries) | |||
auto calc on, but have to edit (f2) cells to force re-calc..help! | Excel Worksheet Functions | |||
Auto Calc not working | Excel Worksheet Functions |