Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello All-
I need to macro that will copy all the data starting on row 17 and paste it in the first available row in another File. For example, I need rows 7-22 of File c:\2008 Tport to be copied into File C:\Master. Then i should be able use the same macro to copy rows 7-55 of file C:\2007 Tport to copy into the first availble row in c:\Master. Can anyone help? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
To copy rows 7-22 from 2008.xls to Master.xls use
Rows("7:22").Select Selection.Copy Workbooks("Master.xls").Activate ActiveSheet.Paste Application.CutCopyMode = False To copy rows 7-55 from 2007.xls to first available row in Master.xls, use Rows("7:55").Select Application.CutCopyMode = False Selection.Copy Workbooks("Master.xls").Activate Range("A1").Select Selection.End(xlDown).Select gotorow = ActiveCell.Row + 1 gotorange = "A" & gotorow Range(gotorange).Select ActiveSheet.Paste Hope this helps, -Chad "David T" wrote: Hello All- I need to macro that will copy all the data starting on row 17 and paste it in the first available row in another File. For example, I need rows 7-22 of File c:\2008 Tport to be copied into File C:\Master. Then i should be able use the same macro to copy rows 7-55 of file C:\2007 Tport to copy into the first availble row in c:\Master. Can anyone help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Copy/Paste how to avoid the copy of formula cells w/o calc values | Excel Discussion (Misc queries) | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
I cannot paste from one workbook to another. Copy works, paste do. | Excel Discussion (Misc queries) | |||
Copy/paste/paste special is not available | Excel Discussion (Misc queries) |