ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   stop worksheet code (https://www.excelbanter.com/excel-programming/427672-re-stop-worksheet-code.html)

Mike H

stop worksheet code
 
Hi,

Sub your_Other_sub()

application.enableevents=false
'do things
application.enableevents=true

end sub

Mike

"sunilpatel" wrote:

Private Sub Worksheet_Change(ByVal Target As Range)

code....

End Sub

Is there a way of disabling above code temporarly, e.g when a particular sub
is active





All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com