In short, I'd like to know if there's a way to catch the source of a copy if the user changes the source of a copy operation mid-copy.
I'd like the users of my worksheet to be able to insert and delete rows and columns as normal, but there are a few special rows and columns with named ranges that I can't let them delete. To work through this issue, I added a routine to the Worksheet_BeforeRightClick event:
This works, but it breaks copy/paste if the user right clicks to paste and the sheet protection changes. Changing the protection causes excel to forget the copy/paste sourcePlease Login or Register to view this content.
To get around that issue, I added a routine to the Worksheet_SelectionChange event that keeps track of any cut/copy sources, and another that replaces the cut/copy source after a worksheet protection change
Please Login or Register to view this content.
This is all more or less working but the problem is that if a user copies a range then (without cancelling the operation or pasting) copies a different range (as if they had made a mistake and changed the source), I don't have a way to update SavedRange to the new copy range.Please Login or Register to view this content.
Am I going about this is the wrong way, or is there a way to spot a copy occur when another copy is already in progress?
Bookmarks