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 they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,222,069
Messages
6,163,733
Members
451,854
Latest member
Tiffany Smith

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