ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Bypass worksheet_change event (https://www.excelbanter.com/excel-programming/330294-bypass-worksheet_change-event.html)

Dr.Schwartz

Bypass worksheet_change event
 
Is there some way to temporarely bypass the worksheet_change event. So
something like:

Sub Insert_During_Bypass

Activate worksheet_change bypass code
Paste clipboard content
Reinstate worksheet_change event

End Sub

Thank you
The Doctor

Norman Jones

Bypass worksheet_change event
 
Hi Dr.Schwartz,

Activate worksheet_change bypass code

Application.EnableEvents = False

Reinstate worksheet_change event

Application.EnableEvents = True


---
Regards,
Norman



"Dr.Schwartz" wrote in message
...
Is there some way to temporarely bypass the worksheet_change event. So
something like:

Sub Insert_During_Bypass

Activate worksheet_change bypass code
Paste clipboard content
Reinstate worksheet_change event

End Sub

Thank you
The Doctor




Tom Ogilvy

Bypass worksheet_change event
 
Application.EnableEvents = False
Paste clipboard content
Application.EnableEvents = True

--
Regards,
Tom Ogilvy

"Dr.Schwartz" wrote in message
...
Is there some way to temporarely bypass the worksheet_change event. So
something like:

Sub Insert_During_Bypass

Activate worksheet_change bypass code
Paste clipboard content
Reinstate worksheet_change event

End Sub

Thank you
The Doctor




Dr.Schwartz

Bypass worksheet_change event
 
Thank you Norman - again...

"Norman Jones" wrote:

Hi Dr.Schwartz,

Activate worksheet_change bypass code

Application.EnableEvents = False

Reinstate worksheet_change event

Application.EnableEvents = True


---
Regards,
Norman



"Dr.Schwartz" wrote in message
...
Is there some way to temporarely bypass the worksheet_change event. So
something like:

Sub Insert_During_Bypass

Activate worksheet_change bypass code
Paste clipboard content
Reinstate worksheet_change event

End Sub

Thank you
The Doctor






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

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