Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening an Office 2003 Excel doc with Office 2000 NT Roxy Excel Discussion (Misc queries) 4 February 8th 08 10:54 PM
Working with Office 2000 and Office 2003 - Urgent Suketu Excel Discussion (Misc queries) 0 April 20th 06 04:59 PM
Office 2000/Office 2003 Excel not printing landscape vise versa BAHTTEXT in English text Setting up and Configuration of Excel 1 April 17th 06 01:37 PM
HOW CAN I READ SPREADSHEETS CREATED BY OFFICE 2000 ON OFFICE 2003. BOLOMO3 Excel Worksheet Functions 1 March 31st 05 01:40 AM
Do I need Office 2003 to download templates ? Have Office 2000. rjwilde Excel Discussion (Misc queries) 0 January 21st 05 01:45 AM


All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"