ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to preserve cut/copy range on SelectionChange event? (https://www.excelbanter.com/excel-programming/307958-how-preserve-cut-copy-range-selectionchange-event.html)

pH7[_8_]

How to preserve cut/copy range on SelectionChange event?
 
I have a Worksheet_SelectionChange event handler that manipulates som
graphic objects – usually not a problem. However, if the user ha
selected a cell, done a copy or cut and then clicked on another cell i
anticipation of doing a Paste, then my macro screws up the pending cu
or copy range. I want to save the copy range on entrance to the macr
and restore it just before exit, but the target parameter to th
SelectionChange event handler is the new range. How can I find th
range that was selected before the user clicked on the new cell

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com