ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Runtime error 1004 - when I increase the amount of data (https://www.excelbanter.com/excel-programming/313523-runtime-error-1004-when-i-increase-amount-data.html)

Rachel Curran

Runtime error 1004 - when I increase the amount of data
 
Hi,

I have a huge vba macro and it works fine, however when I increase the
amount of rows in the raw spreadsheet (the macro works from this) I
get a runtime error 1004. The macro works fine on rows upto and
including 997, however anything above this amount causes the runtime
error - unfortunately I cannot post all the code because there is far
too much. The code that the debug highlights on error is:

inputworkbook.worksheets(sheetname).range(rangestr ).copy

Any ideas?

Tom Ogilvy

Runtime error 1004 - when I increase the amount of data
 
do you have merged cells included when you get above 997.

In any event, you can copy all the cells on the sheet with the copy command,
so there is no built in limitation for 997 rows. It must be something to do
with you particular sheet.

--
Regards,
Tom Ogilvy

"Rachel Curran" wrote in message
om...
Hi,

I have a huge vba macro and it works fine, however when I increase the
amount of rows in the raw spreadsheet (the macro works from this) I
get a runtime error 1004. The macro works fine on rows upto and
including 997, however anything above this amount causes the runtime
error - unfortunately I cannot post all the code because there is far
too much. The code that the debug highlights on error is:

inputworkbook.worksheets(sheetname).range(rangestr ).copy

Any ideas?





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

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