Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switch from Office 2000 to Office 2003 error
We recently upgraded from Office 2000 to Office 2003. I have vba in Excel
that copies a range and posts in the same spreadsheet. I get error "Run-time error '1004' Copy method of Range class failed" This code runs fine in Office 2000, but in Office 2003 the code will make the first pass correctly, but bugs out on the second pass. 'here is the code that needs debugged Worksheets("Store Master Data").Range("A2:F1597").Copy _ Destination:=Worksheets("Final List").Range("B" & X) 'x is a variable tied to a cell value 'x determines which row to paste the results in Any help would be depreciated. I can't figure it out. Thanks in advance, Robert |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switch from Office 2000 to Office 2003 error
Your code looks ok to me.
I think I'd double check what was in X. maybe a couple of: debug.print X would help (and the worksheet doesn't get protected?) Robert wrote: We recently upgraded from Office 2000 to Office 2003. I have vba in Excel that copies a range and posts in the same spreadsheet. I get error "Run-time error '1004' Copy method of Range class failed" This code runs fine in Office 2000, but in Office 2003 the code will make the first pass correctly, but bugs out on the second pass. 'here is the code that needs debugged Worksheets("Store Master Data").Range("A2:F1597").Copy _ Destination:=Worksheets("Final List").Range("B" & X) 'x is a variable tied to a cell value 'x determines which row to paste the results in Any help would be depreciated. I can't figure it out. Thanks in advance, Robert -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Opening an Office 2003 Excel doc with Office 2000 NT | Excel Discussion (Misc queries) | |||
Working with Office 2000 and Office 2003 - Urgent | Excel Discussion (Misc queries) | |||
Office 2000/Office 2003 Excel not printing landscape vise versa | Setting up and Configuration of Excel | |||
HOW CAN I READ SPREADSHEETS CREATED BY OFFICE 2000 ON OFFICE 2003. | Excel Worksheet Functions | |||
Do I need Office 2003 to download templates ? Have Office 2000. | Excel Discussion (Misc queries) |