Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Copy and Paste

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?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
I cannot paste from one workbook to another. Copy works, paste do. JimmyMc Excel Discussion (Misc queries) 1 June 10th 05 03:54 PM
Copy/paste/paste special is not available Diane109 Excel Discussion (Misc queries) 3 December 2nd 04 01:46 AM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"