View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson[_5_] Jim Thomlinson[_5_] is offline
external usenet poster
 
Posts: 486
Default Paste vs PasteSpecial

I agree that it is weird, but you are correct. One line for a simple paste
and two lines for a pastespecial.
--
HTH...

Jim Thomlinson


"Gary''s Student" wrote:

I can copy/paste with one line of code:

Sub ccz1()
Cells(1, 1).Copy Cells(2, 2)
End Sub

but when I want to copy/pastespecial I use two:

Sub ccz2()
Cells(1, 1).Copy
Cells(2, 2).PasteSpecial Paste:=xlPasteValues
End Sub

Is there a syntax which performs copy/pastespecial with only one line?
--
Gary's Student