Paste Special Values

ryland00

Board Regular
Joined
Jun 13, 2014
Messages
76
Is there any way to make this vba code paste special ?

Code:
Sub MoveCols()
Dim lr As Long

Application.ScreenUpdating = False
With Sheets("Insert Data here")


lr = .Cells.Find("*", , xlValues, , xlByRows, xlPrevious).Row


.Range(.Cells(2, "A"), .Cells(lr, "A")).Copy Sheets("Bill hold Template").Cells(2, "A")
.Range(.Cells(2, "B"), .Cells(lr, "B")).Copy Sheets("Bill hold Template").Cells(2, "B")
.Range(.Cells(2, "D"), .Cells(lr, "D")).Copy Sheets("Bill hold Template").Cells(2, "C")
.Range(.Cells(2, "AK"), .Cells(lr, "AK")).Copy Sheets("Bill hold Template").Cells(2, "D")
.Range(.Cells(2, "AM"), .Cells(lr, "AM")).Copy Sheets("Bill hold Template").Cells(2, "E")
.Range(.Cells(2, "AN"), .Cells(lr, "AN")).Copy Sheets("Bill hold Template").Cells(2, "F")


End With
[/CODE]
 

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.
Like
Code:
.Range(.Cells(2, "A"), .Cells(lr, "A")).Copy 
Sheets("Bill hold Template").Cells(2, "A").Pastespecial xlpastevalues
Or
Code:
Sheets("Bill hold Template").Cells(2, "A").resize(lr-1).value=.Range(.Cells(2, "A"), .Cells(lr, "A")).value
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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