How to prevent "Private Sub Workbook_SheetSelectionChange" to execute when a certain sub is executed

  • Thread starter Thread starter Luc
  • Start date Start date
You can turn off event handling with the Enable Events property:

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

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]
 
Not really. You should ALWAYS post your code(s) for comments and suggestions. Why select?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
The title says it all....
 
Hi,

I assume you have code in this event that conditionally you don't want to
execute. Tell us what this condition is.

Mike
 
Thanks for your help, that did the job !!
Luc


Chip Pearson said:
You can turn off event handling with the Enable Events property:

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

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]



The title says it all....
 
Back
Top