LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Disabling worksheet_change when deleting rows . .

My suggestion was that if "Target" is a full row then don't do anything.

If Target.Columns.Count=256 and Target.Rows.Count=1 then
'do nothing
else
'event
End If

....but since I'm not sure waht you're trying to track with the change event
I can't know if that would work for you. Either deleting or inserting a row
would hit the "do nothing"

Tim.

wrote in message
oups.com...
Hmm . . Can't see how I can make that work.

I will elaborate on the problem. Here's what I need to do.

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 check row deletes * = 0 Then
<< Event
End If
End If
End If

I need to know how to write the <* Condition to check row deletes *
If a row is being deleted then don't trigger the event.

Thanks!



 
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 worksheet_change when running a specific macro . . Adam[_14_] Excel Programming 1 February 16th 06 06:24 AM
Prevent error when deleting row within Worksheet_Change target ran Peter Rooney Excel Programming 0 February 1st 06 03:41 PM
Deleting or Disabling code in Excel Cathy W Excel Programming 2 December 16th 05 01:40 PM
Disabling a cell for editing or deleting Tom Ogilvy Excel Programming 0 September 25th 03 04:47 AM


All times are GMT +1. The time now is 10:02 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"