copy paste last row with merged cells

288enzo

Well-known Member
Joined
Feb 8, 2009
Messages
723
Office Version
  1. 2016
Platform
  1. Windows
I feel like this is incredabily simple, I just can't see it.

I'm copying cell J9 which is merged with J10. Now, I've copied and pasted plenty, even using the last row, but this time I think the merged cells are throwing me off.

Every two cells are merged. J9 & J10, J11 & J12, J13 & J14 and so on.

I want to past to the last row of A all the way down J.

This is what I have

VBA Code:
    Range("J9").Copy
    Range("J11:J" & Range("A" & Rows.Count).End(xlUp).Row).Paste

I've tried pastespecial, i've tried mergearea.copy.

This is the error I'm getting - Run-time error '438'; Object doesn't support this property or method.

Thank you
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
The Range object doesn't have a member called Paste, that's why you're getting an error.
You could try ...

VBA Code:
Range("J9").AutoFill Destination:=Range("J9:J" & Range("A" & Rows.Count).End(xlUp).Row), Type:=xlFillDefault
 
Upvote 0
Solution

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top