Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to take 4 columns from one spreadsheet and paste it to th
bottom of another. I am doing each one seperately. The first on worked fine. The second one did not because I need to save th location of the bottom of the sheet and then reference that with a offset of 1,1 to move it to the next row, next column. When I do tha I get run-time error '1004' - method 'range' of object '_global failed. Here is my code: Dim bottomofsheet As Long Sheets("tracerfinal").Select Range("E1:E" & Range("A65536").End(xlUp).Row).Copy Sheets("Final balancing").Select bottomofsheet = Sheets("Fina balancing").Range("A65536").End(xlUp).Row [A65536].End(xlUp).Offset(1).Select ActiveSheet.Paste Sheets("tracerfinal").Select Range("D1:D" & Range("A65536").End(xlUp).Row).Copy Sheets("Final balancing").Select Range(bottomofsheet, 1).Offset(1, 1).Select ActiveSheet.Paste The error happens on the Range(bottomofsheet, 1).Offset(1, 1).Select line. I have tried several variations including changing the dim from Long t object to range and then modifying accordingly. Any help would be greatly appreciated. Thanks -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum variable range of column entries in offset cell | New Users to Excel | |||
Selecting the first cell of the last row in a range | New Users to Excel | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
Selecting a cell in a range | Excel Worksheet Functions | |||
Selecting a cell range | Excel Programming |