View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
broro183[_24_] broro183[_24_] is offline
external usenet poster
 
Posts: 1
Default Copying Multiple Rows


Hi Susie,
Here is a one liner that takes Ian's suggestion one step further:


Workbooks("copiedfrom.xls").Sheets("sheetcopiedfro m").Rows("4:8").Cop
_
Workbooks("copiedto.xls").Sheets("sheetcopiedto"). Range("A26")

Just change the details as required within the "" 's. NB, this copie
formulae etc as they are but it looks like this is what your origina
code does now. (I'm sure the paste technique would be possible t
change, but I don't know the correct syntax.)

It doesn't cover your first few lines of code,
Workbooks.Open ("N:\Projects\Active Projects\Projec

sheets\VCCS.xls")
Worksheets(1).Rows(4).Select
Selection.Copy

Workbooks(1).Activate
Range("E12:H12") = "VCCS"
Worksheets(1).Rows(13).Select
ActiveSheet.Paste


but the pasting can be adapted using the above approach.

hth,
Rob Brockett
NZ
Always learning & the best way to learn is to experience..

--
broro18
-----------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...fo&userid=3006
View this thread: http://www.excelforum.com/showthread.php?threadid=50637