Cause of SheetChange Event
Just check the count of the target.
Private Sub Worksheet_Change(ByVal Target As Range)
if target.count 1 then exit sub
msgbox "Do Some Stuff"
End Sub
In the above axample the message box will only come up if only one cell was
changed.
--
HTH...
Jim Thomlinson
"Matthew Wieder" wrote:
We've got an event handler on the SheetChange event that needs to do some
work if the user entered or changed values in teh sheet. However, we have
found that the SheetChange event fires far more often then in this case (such
as when the user deletes a column) and we need a way to know whether we
should contiune on with our handler because the user entered data, or we
should exit the function because something else triggered the event. How
can we do this? Is there some other event that gets fired on column deletion
that we could set a flag in? Is there a way within the sheetchange event to
know wahat kind of change triggered the call?
|