I have the script below that pretty much does what I want, but I need it to fire off ONLY if someone deletes a value from the Range E9:E17. It is not really a SelectionEvent, it is more of a Change_Event, but if the change is the delete, the value is gone from the cell before I can capture it. I think the SelectionEvent has to call the change event. Does it make sense? Let me know if you need clarification. Thanks!!
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Application.EnableEvents = True
If Not Intersect(Target, Range("E9:E17")) Is Nothing Then
GetValue = ActiveCell.Value
GetCustomer = ActiveCell.Offset(0, -1).Value
With Sheets("LargeCustomerOP").Range("D2:D6") 'searches range in Col D
Set Rng = .Find(What:=GetCustomer, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Rng.Offset(0, 1).Value = Rng.Offset(0, 1).Value + GetValue
Else
'value not found
End If
End With
End If
Application.EnableEvents = True
End Sub