Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable a Macro
I have a macro that runs automatically every time certain cells are changed
I also have an "update" macro which I run manually. Is there code I can put into the "update" macro that disables the automatic macro, allowing the "update" routine to run unimpeded, then insert another line of code to re-enable the automatic macro? Dave. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable a Macro
application.EnableEvents = false then at the end of your code: application.EnableEvents = true You might also need to use application.calculation = xlmanual followed by (at the end of the code) application.calculation = xlautomatic On Thu, 15 Dec 2005 23:32:22 -0000, Dave wrote: I have a macro that runs automatically every time certain cells are changed I also have an "update" macro which I run manually. Is there code I can put into the "update" macro that disables the automatic macro, allowing the "update" routine to run unimpeded, then insert another line of code to re-enable the automatic macro? Dave. ------------------ Darren |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable a Macro
Thanks Darren - Worked a treat. I was searching the HELP for "disable"
Dave. "Darren Hill" wrote in message news:op.s1umxakped89cl@omega... application.EnableEvents = false then at the end of your code: application.EnableEvents = true You might also need to use application.calculation = xlmanual followed by (at the end of the code) application.calculation = xlautomatic On Thu, 15 Dec 2005 23:32:22 -0000, Dave wrote: I have a macro that runs automatically every time certain cells are changed I also have an "update" macro which I run manually. Is there code I can put into the "update" macro that disables the automatic macro, allowing the "update" routine to run unimpeded, then insert another line of code to re-enable the automatic macro? Dave. ------------------ Darren |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable a Macro
Glad top help.
Darren On Fri, 16 Dec 2005 01:04:47 -0000, Dave wrote: Thanks Darren - Worked a treat. I was searching the HELP for "disable" Dave. "Darren Hill" wrote in message news:op.s1umxakped89cl@omega... application.EnableEvents = false then at the end of your code: application.EnableEvents = true You might also need to use application.calculation = xlmanual followed by (at the end of the code) application.calculation = xlautomatic On Thu, 15 Dec 2005 23:32:22 -0000, Dave wrote: I have a macro that runs automatically every time certain cells are changed I also have an "update" macro which I run manually. Is there code I can put into the "update" macro that disables the automatic macro, allowing the "update" routine to run unimpeded, then insert another line of code to re-enable the automatic macro? Dave. ------------------ Darren -- ------------------ Darren |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Disable running of SelectionChange macro when in another macro? | Excel Discussion (Misc queries) | |||
Disable Esc-key - macro | Excel Discussion (Misc queries) | |||
disable user running macro from Tools Macro | Excel Discussion (Misc queries) | |||
Disable the Macro Pop up | Excel Programming | |||
Disable Macro at open by an external macro | Excel Programming |