Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet change event (located in ThisWorkbook) that I need
to temporarily disable while another macro runs. How do I do this? Thanks for the help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.EnableEvents = False will disable ALL events. If you don't want to do that, then you
can use a public variable (in a standard module) In the standard module: Public Flag As Boolean Sub AnotherMacro() Flag = True 'run your code here Flag = False End Sub In ThisWorkbook module: Sub Worksheet_Change(.....) If Flag Then Exit Sub 'the "real" code here End Sub Check out the Public statement in Help for more information about variable scope. On 14 Jul 2003 10:12:27 -0700, (Tim) wrote: I have a worksheet change event (located in ThisWorkbook) that I need to temporarily disable while another macro runs. How do I do this? Thanks for the help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Change Event | Excel Discussion (Misc queries) | |||
Worksheet change Event | Excel Worksheet Functions | |||
Worksheet Change event | Excel Discussion (Misc queries) | |||
Worksheet Change Event | Excel Discussion (Misc queries) | |||
Worksheet Row Change event | Excel Discussion (Misc queries) |