PC Review


Reply
Thread Tools Rate Thread

Application EnableEvents

 
 
B Lynn B
Guest
Posts: n/a
 
      20th Oct 2009
If I set EnableEvents to False while my code is running, and then
accidentally exit the code without setting back to True - does this property
get reset to True when Excel is closed? My testing seems to verify that it
does, but I'm at a point where I could use confirmation. Thanks!
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      20th Oct 2009
It resets to TRUE when Excel is closed.


Gord Dibben MS Excel MVP

On Tue, 20 Oct 2009 14:11:01 -0700, B Lynn B
<(E-Mail Removed)> wrote:

>If I set EnableEvents to False while my code is running, and then
>accidentally exit the code without setting back to True - does this property
>get reset to True when Excel is closed? My testing seems to verify that it
>does, but I'm at a point where I could use confirmation. Thanks!


 
Reply With Quote
 
JockW
Guest
Posts: n/a
 
      20th Oct 2009
Hi
Your code will be reset when the workbook is opened again.

You could add:

Sub reset()
Application.EnableEvents = True
End Sub


to tour worksheet code.
If your code is stopped for whatever reason, press <Alt> + <F8> and select
this sub to re-enable your code.
Saves shutting down and starting again.
hth.
Jock



"B Lynn B" wrote:

> If I set EnableEvents to False while my code is running, and then
> accidentally exit the code without setting back to True - does this property
> get reset to True when Excel is closed? My testing seems to verify that it
> does, but I'm at a point where I could use confirmation. Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.EnableEvents DCPan Microsoft Excel Worksheet Functions 3 18th Oct 2008 05:46 AM
Application.EnableEvents help =?Utf-8?B?QWxleA==?= Microsoft Excel Programming 4 18th Aug 2006 06:57 PM
application.EnableEvents =?Utf-8?B?bmM=?= Microsoft Excel Misc 1 28th Sep 2005 04:00 PM
application.enableEvents jeffP Microsoft Excel Programming 1 1st Aug 2004 03:12 PM
Application.EnableEvents Terry Microsoft Excel Programming 2 2nd Apr 2004 08:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:51 AM.