Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Is there a way to turn events on or off?

Hello

I am using a Worksheet_SelectionChange event which is very useful. however,
it is a bit of a pain if it fires off right at the start of my code. So is
there any way to disable event handling and then when say a process is
finished turn it on again?

Angus Comber





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Is there a way to turn events on or off?

Angus,

You can disable events with code like

Application.EnableEvents = False
' your code here
Application.EnableEvents = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Angus Comber" wrote in message
...
Hello

I am using a Worksheet_SelectionChange event which is very useful.

however,
it is a bit of a pain if it fires off right at the start of my code. So

is
there any way to disable event handling and then when say a process is
finished turn it on again?

Angus Comber







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
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
events Mark[_17_] Excel Programming 1 October 31st 03 09:18 AM
events Mark[_17_] Excel Programming 1 October 29th 03 12:56 PM
Code to automatically turn on and turn off Track Changes John[_46_] Excel Programming 1 October 7th 03 02:22 AM
Order of events Susan Lammi Excel Programming 5 July 24th 03 10:49 PM


All times are GMT +1. The time now is 06:47 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"