Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Another runtime 1004 error | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Why I got this 1004 runtime error | Excel Programming | |||
Excel 2002 Data Forms runtime error 1004 | Excel Programming | |||
runtime error 1004 | Excel Programming |