teatimecrumpet
Active Member
- Joined
- Jun 23, 2010
- Messages
- 307
Hi does someone know why I'm getting different speeds for the different portions of code that is basically just copying and pasting all visible cells on a worksheet and then pasting it to another sheet?
thanks,
'this code finishes almost instantaneously
Cells.Select
Selection.Copy
Worksheets("DSR").Range("A1").PasteSpecial xlPasteValues
'this code takes 2 seconds
Cells.Copy Destination:=Sheets("DSR").Range("A1")
'this code takes 10-15 seconds
Columns("A:U").Copy Destination:=Sheets("DSR").Range("A1")
thanks,
'this code finishes almost instantaneously
Cells.Select
Selection.Copy
Worksheets("DSR").Range("A1").PasteSpecial xlPasteValues
'this code takes 2 seconds
Cells.Copy Destination:=Sheets("DSR").Range("A1")
'this code takes 10-15 seconds
Columns("A:U").Copy Destination:=Sheets("DSR").Range("A1")