Paste Values

Spike

Board Regular
Joined
May 29, 2003
Messages
90
I found some code on this excellent forum that I've changed as required and it works fine except for the fact that I need to paste values to the destination cells. Code that works is as follows:

Worksheets("Active").Range(Cells(n, 1), Cells(n, 17)).Copy _
Destination:=Worksheets("Ledger").Range("A65536").End(xlUp).Offset(1, 0)

I've done this before but I'm only familiar with the "paste special" vb code when it follows the "Selection" method. ( ie Selection.PasteSpecial etc, etc.)

I'm not at all sure how I can change the code above that follows Destination:= etc ... to paste only values as required for my purposes.

As always any suggestions very much appreciated.


Thanks & Regards,


Spike
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
For paste special, you have to use it as a separate statement. Try:

Code:
Worksheets("Active").Range(Cells(n, 1), Cells(n, 17)).Copy

Worksheets("Ledger").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
 
Upvote 0

Forum statistics

Threads
1,203,269
Messages
6,054,482
Members
444,727
Latest member
Mayank Sharma

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