ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Range Copy (https://www.excelbanter.com/excel-programming/331058-range-copy.html)

Jon C[_2_]

Range Copy
 
Hi,

I'd appreciate some help on copying Ranges.

I have a workbook that contains one sheet. I'd like to copy that
sheet, except the first three rows, to the second row (A2) in another
sheet in a different workbook.

I think I need something like:

....With the source sheet active...

Rows("1:3").Select
Selection.Delete Shift:=xlUp

wkbSource.Sheets(1).Range(UsedRange).Copy _
wkbTarget.Sheets("Timesheet Actuals").Range("A2")

but I think I've got the use of UsedRange wrong as this errors...!


TIA.

Jon C


Jon C[_2_]

Range Copy
 
Forget it...... I should be shot for stupidity.....!

wkbSource.Sheets(1).Used*Range.Copy _

Jon C



All times are GMT +1. The time now is 06:25 AM.

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