Copy/Paste Values Only

Ron512

Board Regular
Joined
Nov 17, 2002
Messages
98
How do I adjust the below statement so the values copied are values only?

Thanks
Ron

Code:
Ws.Range("H17:H40").Copy Sheets("Summary").Cells(4, last_col + 1)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try

VBA Code:
Ws.Range("H17:H40").Copy Sheets("Summary").Cells(4, last_col + 1).PasteSpecial Paste:=xlPasteValues
 
Upvote 0
How about
VBA Code:
Sheets("Summary").Cells(4, last_col + 1).Resize(24).Value = ws.Range("H17:H40").Value
 
Upvote 0
Thanks to both of you for the blazing fast response speed.

Diving-Dan, I get a compile error expected end of statement on Paste.

Fluff, Works great. I don’t understand how it works or Resize(24), although when this fire is out I will go back and learn.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

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