Copy Destination - Values Only

Foz1980

Board Regular
Joined
May 6, 2015
Messages
128
Hi all,

Please can someone help me.
I need to get the below code to just paste values so I keep the destination formatting.

Code:
ActiveWorkbook.Sheets("Data").Range("A:A").Copy Destination:=Workbooks("Convened for August 2016 Tracker.xlsm").Sheets("Sheet1").Range("L:L")

The code works fine but copies formatting as well which is what I want to avoid.

Thanks,

Chris
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You need to do the Copy and Paste separately:
Code:
ActiveWorkbook.Sheets("Data").Range("A:A").Copy
Workbooks("Convened for August 2016 Tracker.xlsm").Sheets("Sheet1").Range("L1").PasteSpecial xlPasteValues
 
Upvote 0
You need to do it in two lines:

Code:
ActiveWorkbook.Sheets("Data").Range("A:A").Copy
Workbooks("Convened for August 2016 Tracker.xlsm").Sheets("Sheet1").Range("L:L").PasteSpecial Paste:=xlPasteValues

WBD
 
Upvote 0

Forum statistics

Threads
1,216,731
Messages
6,132,391
Members
449,725
Latest member
Enero1

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