ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cutting, copying, and pasting my selection (https://www.excelbanter.com/excel-programming/284109-cutting-copying-pasting-my-selection.html)

andycharger[_3_]

Cutting, copying, and pasting my selection
 

Hi

In my excel document, I need to highlight my used cells, copy the
cells, Move to cell DV1 and paste them.

Can anyone help me?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements

Tom Ogilvy

Cutting, copying, and pasting my selection
 
Range("A1").CurrentRegion.Copy Destination:=Range("DV1")
' Optional to highlight
Range("A1").CurrentRegion.Select

--
Regards,
Tom Ogilvy

"andycharger" wrote in message
...

Hi

In my excel document, I need to highlight my used cells, copy the
cells, Move to cell DV1 and paste them.

Can anyone help me?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to

creating financial statements




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

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