Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 Secret Squirrel wrote: 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 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 "Secret Squirrel" wrote: 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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perfect! Thanks Dave!
"Dave Peterson" wrote: 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 Secret Squirrel wrote: 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 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Copy & Paste in backgorund | Excel Discussion (Misc queries) | |||
HELP with macro for copy and paste | Excel Discussion (Misc queries) | |||
Copy and Paste Special (Formulas) pastes cell value if numeric | Excel Discussion (Misc queries) | |||
Macro to find, copy, and paste until value change | Excel Worksheet Functions | |||
Search, Copy, Paste Macro in Excel | Excel Worksheet Functions |