Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Can't paste as merge cells aren't identical

Running a macro that copies and paste special from one spreadsheet to another
and I get an error "operation requires merged cell's to be identically sized"
but my cells aren't merged!

Here's my code:
Range("g3").Copy
Workbooks(file).Activate
Worksheets("D.3. PD - ASLD").Activate
Range("e10").Select
Selection.PasteSpecial Paste:=xlPasteValues

The thing is that I have used almost identical code to copy the cells from
the "copy from" spreadsheet into an identical sheet as the "copy into" sheet
and it worked fine.

Maybe I'm being foolish, but am sure that neither cell is merged.

Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Can't paste as merge cells aren't identical

Please ignore - error in the code further up.



"Muttley" wrote:

Running a macro that copies and paste special from one spreadsheet to another
and I get an error "operation requires merged cell's to be identically sized"
but my cells aren't merged!

Here's my code:
Range("g3").Copy
Workbooks(file).Activate
Worksheets("D.3. PD - ASLD").Activate
Range("e10").Select
Selection.PasteSpecial Paste:=xlPasteValues

The thing is that I have used almost identical code to copy the cells from
the "copy from" spreadsheet into an identical sheet as the "copy into" sheet
and it worked fine.

Maybe I'm being foolish, but am sure that neither cell is merged.

Any thoughts?

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
Keep all cells in a column unique? No cells identical phillr Excel Worksheet Functions 1 August 28th 08 02:54 PM
Reference an identical cell on a different page using copy/paste? Radar Excel Worksheet Functions 4 August 29th 05 05:21 PM
merge/extract data from identical worksheets in a workbook Michelle K Excel Discussion (Misc queries) 5 June 21st 05 05:24 PM
Inexplicable difference in row hiding speed - identical code, identical machines! Matt Larkin Excel Programming 5 November 1st 04 10:35 AM
Testing for Identical Cells George B[_2_] Excel Programming 1 April 10th 04 01:40 PM


All times are GMT +1. The time now is 02:21 PM.

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

About Us

"It's about Microsoft Excel"