ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adress of Copied Range (https://www.excelbanter.com/excel-programming/274355-adress-copied-range.html)

Luis Carrion

Adress of Copied Range
 
When you select a Range and Copy it, a moving border is created around
the selection. This "border" persists until you press Esc or set
Application.CutCopyMode=False in VBA.

If you click in other area of the sheet, itīll still be blinking
around a previous copied range. How do I detect the address of the
moving border once I position inside other cell?

Thanks
LC

Dave Peterson[_3_]

Adress of Copied Range
 
I don't think you can. But why do you want to?

If you copied the range in code, you'll know what you copied. If you just want
to paste the already copied cells, you can just paste to one cell and excel will
expand the "to" range to match the dimensions of the "from" range.



Luis Carrion wrote:

When you select a Range and Copy it, a moving border is created around
the selection. This "border" persists until you press Esc or set
Application.CutCopyMode=False in VBA.

If you click in other area of the sheet, itīll still be blinking
around a previous copied range. How do I detect the address of the
moving border once I position inside other cell?

Thanks
LC


--

Dave Peterson



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

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