Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hello, Can someone help me in creating a macro that will copy data from one worksheet and paste it to a new worksheet? The code below move data within the same worksheet. Please Helps! Public Sub CopyOne() Worksheets("Sheet1").Activate 'Range("E1:E7").Copy Range("F2:F7") End Sub |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Public Sub CopyOne()
Worksheets("Sheet1").Range("E1:E7").Copy _ destination:=worksheets("sheet2").Range("F2") End Sub Excel will expand that "to" range--just like when you do it manually. Jurassien wrote: Hello, Can someone help me in creating a macro that will copy data from one worksheet and paste it to a new worksheet? The code below move data within the same worksheet. Please Helps! Public Sub CopyOne() Worksheets("Sheet1").Activate 'Range("E1:E7").Copy Range("F2:F7") End Sub -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro: Insert, copy and past data from sheet | Excel Discussion (Misc queries) | |||
do not copy data to another sheet if exists | Excel Worksheet Functions | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
macro to copy columns to sheet | Excel Discussion (Misc queries) | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions |