Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

preventing code from running

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
anny - 20 Mar 2006 21:51 GMT
hi all
I'm sure this is easy, but I'm a bit stuck.

I have a sub that is executed when the Worksheet_Change event fires.  There
is also a macro that I run (mod_Evaluate) while working on that sheet.  Both
sets of code work fine, but...

I want Worksheet_Change code to be in effect at all times EXCEPT when I run
mod_Evaluate.  What code can I add to mod_Evaluate to temporarily stop the
Worksheet_Change code?

Thank you
anny
Otto Moehrbach - 20 Mar 2006 22:00 GMT
Application.EnableEvents = False
   'Your macro code
Application.EnableEvents = True
HTH  Otto
> hi all
> I'm sure this is easy, but I'm a bit stuck.
[quoted text clipped - 9 lines]
> Thank you
> anny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.