Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Disable Macro

Is there a way to temporarily disable a macro while
running another macro? I have a macro that is activated
on Worksheet change. I'd like to disable this while the
other macro is running.

Thank you for your help.

Mark.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Disable Macro

Mark,

You may want to investigate Application.EnableEvents = False

Rob

"Mark" wrote in message
...
Is there a way to temporarily disable a macro while
running another macro? I have a macro that is activated
on Worksheet change. I'd like to disable this while the
other macro is running.

Thank you for your help.

Mark.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disable Macro

Application.enableEvents = False
'
Application.EnableEvents = True

will stop events for Excel objects from running.

--
Regards,
Tom Ogilvy

Mark wrote in message
...
Is there a way to temporarily disable a macro while
running another macro? I have a macro that is activated
on Worksheet change. I'd like to disable this while the
other macro is running.

Thank you for your help.

Mark.



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
Disable running of SelectionChange macro when in another macro? Tonso Excel Discussion (Misc queries) 6 March 21st 10 06:50 PM
Disable Esc-key - macro yshridhar Excel Discussion (Misc queries) 4 February 9th 08 04:19 AM
How to disable the Macro? Eric Excel Discussion (Misc queries) 1 November 10th 07 04:25 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
Disable Macro at open by an external macro Ricardo[_2_] Excel Programming 0 November 10th 03 07:50 PM


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

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

About Us

"It's about Microsoft Excel"