Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default How to prevent "Private Sub Workbook_SheetSelectionChange" to execute when a certain sub is executed ?

The title says it all....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to prevent "Private Sub Workbook_SheetSelectionChange" to execute when a certain sub is executed ?

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]



On Fri, 18 Dec 2009 21:55:19 +0100, "Luc" wrote:

The title says it all....

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default How to prevent "Private Sub Workbook_SheetSelectionChange" to execute when a certain sub is executed ?

Not really. You should ALWAYS post your code(s) for comments and suggestions. Why select?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Luc" wrote in message ...
The title says it all....
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default How to prevent "Private Sub Workbook_SheetSelectionChange" to exec

Hi,

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

Mike

"Luc" wrote:

The title says it all....

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default How to prevent "Private Sub Workbook_SheetSelectionChange" to execute when a certain sub is executed ?

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


"Chip Pearson" schreef in bericht
...
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]



On Fri, 18 Dec 2009 21:55:19 +0100, "Luc" wrote:

The title says it all....


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
Stop the "flashing" when I execute an Excel macro? Corinne Excel Discussion (Misc queries) 4 June 25th 09 08:09 PM
Error Message: "Can't Execute Code in Break Mode" cru Excel Programming 6 November 21st 08 11:41 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"method 'execute' of object 'find' failed" [email protected][_2_] Excel Discussion (Misc queries) 0 August 31st 07 10:29 AM
In Excel 2003 is there a way to prevent "Save As" and "Print"? lucky2000 Excel Discussion (Misc queries) 3 April 26th 07 02:49 PM


All times are GMT +1. The time now is 10:55 AM.

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"