You are right but I prefer the use of Worksheet_SelectionChange and store the value and test it later in Worksheet_Change to check if it has been changed or not. A lot faster then calling the application object.
Ronse thx for your suggestion, I didn't know about the performance about which one is faster. Let me also post your suggestion below
Dim oldValue As Variant
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("A1:B10")) Is Nothing Then oldValue = Target.Value End If End Sub
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("A1:B10")) Is Nothing Then If Target.Value <> oldValue Then 'Do something End If End If End Sub
Wyman W Human Resources
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
You are right but I prefer the use of Worksheet_SelectionChange and store the value and test it later in Worksheet_Change to check if it has been changed or not. A lot faster then calling the application object.
Kind regards,
JP Ronse
If this response answers your question then please mark as Answer.
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.