pasting very slow...need help to make it faster

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
394
My code below is pasting value in target cell ver slow, can someone revised my code to make it faster..thanks

Union(.Cells(sRow, "a"), .Cells(sRow, "d"), .Cells(sRow, "e"), .Cells(sRow, "g"), .Cells(sRow, "j"), .Cells(sRow, "k"), .Cells(sRow, "l"), .Cells(sRow, "m"), .Cells(sRow, "n"), .Cells(sRow, "o"), .Cells(sRow, "p"), .Cells(sRow, "q"), .Cells(sRow, "r"), .Cells(sRow, "c")).Copy

Cells(dRow, "b") = .Cells(sRow, "a")
Cells(dRow, "f") = .Cells(sRow, "d")
Cells(dRow, "j") = .Cells(sRow, "e")
Cells(dRow, "n") = .Cells(sRow, "f")
Cells(dRow, "p") = .Cells(sRow, "h")
Cells(dRow, "r") = .Cells(sRow, "k")
Cells(dRow, "t") = .Cells(sRow, "l")
Cells(dRow, "v") = .Cells(sRow, "m")
Cells(dRow, "x") = .Cells(sRow, "n")
Cells(dRow, "z") = .Cells(sRow, "o")
Cells(dRow, "ab") = .Cells(sRow, "p")
Cells(dRow, "ad") = .Cells(sRow, "q")
Cells(dRow, "af") = .Cells(sRow, "r")
Cells(dRow, "ah") = .Cells(sRow, "s")
 

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,071
Members
414,281
Latest member
Engjamal2021

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
Top