Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default 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
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
run time error 1004 jimbob Excel Discussion (Misc queries) 1 August 5th 06 02:29 PM
Run Time error 1004 Steph Excel Discussion (Misc queries) 1 May 4th 06 10:29 PM
Run time error 1004! steph00 Excel Discussion (Misc queries) 0 May 4th 06 04:45 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Run Time Error 1004 Trisha[_2_] Excel Programming 2 November 5th 03 02:29 AM


All times are GMT +1. The time now is 06:58 PM.

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"