Copy & Paste Special Macro


G

Guest

I'm trying to write a macro to cut and paste values only from one worksheet
to another. I have the copy and paste down but I don't know how to do the
"paste special" part. Can anyone help?

Public CopyOne()
Worksheets("Sheet2").Range("A1:C8").Copy _
Destination:=Worksheets("Sheet3").Range("A1")
End Sub
 
Ad

Advertisements

D

Dave Peterson

Worksheets("Sheet2").Range("A1:C8").Copy
Worksheets("Sheet3").Range("A1").pastespecial paste:=xlpastevalues

or

worksheets("sheet3").range("a1:c8").value _
= Worksheets("Sheet2").Range("A1:C8").value
 
G

Guest

hi,
this works
Sub macPasteTest()
Sheets("sheet2").Select 'change to fit your data.
Range("A1:C18").Copy 'this was just testing
Sheets("sheet3").Select
Range("A1").PasteSpecial xlPasteAll
End Sub

regards
FSt1
 
Ad

Advertisements

G

Guest

Perfect! Thanks Dave!

Dave Peterson said:
Worksheets("Sheet2").Range("A1:C8").Copy
Worksheets("Sheet3").Range("A1").pastespecial paste:=xlpastevalues

or

worksheets("sheet3").range("a1:c8").value _
= Worksheets("Sheet2").Range("A1:C8").value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top