Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run time Error 1004
I am using Excel 97.
I have the following macro. The macro opens several spreadsheets, copies data from these spreadsheets into one spreadsheet that becomes the report. My macro worked for months. Then I started to get an error called "Run-time error 1004" The error message is as follows from Excel says : "The information cannot be pasted because the Copy area and the paste area are not the same size and shape. Try one of the following: 1.) Click a single cell, and then paste. 2.) Select a rectangle that's the same size and shape, and then paste. I did both 1 & 2 and nothing works. How can I solve the problem. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run time Error 1004
Hi Rich,
Can you post the copy/paste code, please. I would code it with something like: Dim RgOrigin as Range ' multicells range to be copied Dim RgDestination as Range ' single-cell range for paste '... set range here RgOrigin.Copy Destination:=RgDestination Regards, Sebastien "Rich" wrote: I am using Excel 97. I have the following macro. The macro opens several spreadsheets, copies data from these spreadsheets into one spreadsheet that becomes the report. My macro worked for months. Then I started to get an error called "Run-time error 1004" The error message is as follows from Excel says : "The information cannot be pasted because the Copy area and the paste area are not the same size and shape. Try one of the following: 1.) Click a single cell, and then paste. 2.) Select a rectangle that's the same size and shape, and then paste. I did both 1 & 2 and nothing works. How can I solve the problem. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
run time error 1004 | Excel Discussion (Misc queries) | |||
Run Time error 1004 | Excel Discussion (Misc queries) | |||
Run time error 1004! | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel | |||
Run Time Error 1004 | Excel Programming |