Jaafar Tribak
Well-known Member
- Joined
- Dec 5, 2002
- Messages
- 9,797
- Office Version
- 2016
- Platform
- Windows
Hi all,
The worksheet change event tells us which Range (Target) was edited but doesn't tell us how.
As we know, the user can change a cell either, by editing it with the keyboard, by pasting a value into it ,by drag and drop or by using the autofill feature... All of these actions trigger the worksheet change event but we can't tell which one is responsible for triggering it.
I think, having a "worksheet event" that tells us how the user modified the value in the cell would be an interesting feature that could be used in code to act differently depending on the action performed by the user.
This is a bit of a challenge question, but I will leave it there in case anyone comes up with any ideas.
Regards.
VBA Code:
Worksheet_Change(ByVal Target As Range)
The worksheet change event tells us which Range (Target) was edited but doesn't tell us how.
As we know, the user can change a cell either, by editing it with the keyboard, by pasting a value into it ,by drag and drop or by using the autofill feature... All of these actions trigger the worksheet change event but we can't tell which one is responsible for triggering it.
I think, having a "worksheet event" that tells us how the user modified the value in the cell would be an interesting feature that could be used in code to act differently depending on the action performed by the user.
This is a bit of a challenge question, but I will leave it there in case anyone comes up with any ideas.
Regards.
Last edited: