Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Disabling worksheet_change when running a specific macro . .

Hi,
I have a macro that does a series of copy & pastes inside the module
code. How do I prevent this macro from firing a series of events in the
worksheet_change() in the worksheet code?

BTW, I have a condition for Application.cutcopymode = 0, which
correctly disables manual copy and paste.

The macro that I have running in the module code is called Sub
InsertProj

This is what I expect my worksheet_change() code to look like . . .

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Target, Range("W:W")) Is Nothing Then
If Application.CutCopyMode = 0 Then
If <* Condition to disable macro "Sub InsertProj" * = 0 Then
<< Event
End If
End If
End If

I need to know how to write the <* Condition to disable macro "Sub
InsertProj" * = 0

Thanks!
Adam

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Disabling worksheet_change when running a specific macro . .

Never mind . . . Should've spent more time googling before posting that
.. . .
Fixed it with

sub InsertProj
Application.EnableEvents = False
<< Code
Application.EnableEvents = True
end sub

on my macro . .

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
Disabling WORKSHEET_CHANGE event Jase Excel Discussion (Misc queries) 1 April 25th 08 04:32 PM
Disabling a specific macro Matt Excel Programming 3 December 9th 05 03:03 AM
Worksheet_Change Event triggered off specific cell ExcelMonkey[_142_] Excel Programming 2 June 7th 04 03:33 AM
worksheet_change vs. calculate, and worksheet_change not running Tom Ogilvy Excel Programming 1 July 14th 03 02:51 AM
worksheet_change vs. calculate, and worksheet_change not running Ross[_5_] Excel Programming 0 July 13th 03 04:27 PM


All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"