How to Paste Special into the next empty row

Haywomen

New Member
Joined
Jun 7, 2019
Messages
3
Hi,

I m trying to paste only the value from a merged cell ("C10:K10"), to the next empty cell in column N. The code I am using unsuccessfully is below:

Range("C10:K10").Copy
Range("N" & Rows.Count).End(xlUp).Offset(1).Select
ActiveSheet.PasteSpecial xlPasteValues
Application.ScreenUpdating = True

Please can someone give me some advice.

Thank you.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try
Code:
Range("N" & Rows.Count).End(xlUp).Offset(1).value = Range("C10").value
 
Upvote 0
Hi,

I m trying to paste only the value from a merged cell ("C10:K10"), to the next empty cell in column N. The code I am using unsuccessfully is below:

Range("C10:K10").Copy
Range("N" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Application.ScreenUpdating = True

Please can someone give me some advice.

Thank you.

The PasteSpecial is in a cell.

Also, if you are only going to paste values, you can pass the value of a different cell, like the code of Nosparks. Here another option.


Code:
Range("N" & Rows.Count).End(xlUp)(2).Value = Range("C10").Value
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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