#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default insert rows

i have a range of data that varies in number of rows
i need to insert that (number) of rows onto sheet one
example
on sheet 2, the range is 26 rows
i need to insert 26 rows on sheet one between row 7 and 8

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default insert rows


crows = Cells(Rows.Count,"A").End(xlUp).Row
Range("A1").Resize(cRows,1).EntireRow.Copy
Destination:=Worksheets("Sheet1").Range("A8")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
i have a range of data that varies in number of rows
i need to insert that (number) of rows onto sheet one
example
on sheet 2, the range is 26 rows
i need to insert 26 rows on sheet one between row 7 and 8

thanks in advance



Reply
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
insert rows in a worksheet that do not change adjoining rows craigandmel Excel Discussion (Misc queries) 2 April 29th 08 10:26 PM
Insert rows: Formats & formulas extended to additonal rows Twishlist Excel Worksheet Functions 0 October 22nd 07 04:23 AM
How do I insert blank rows between rows in completed worksheet? bblue1978 Excel Discussion (Misc queries) 1 October 26th 06 07:02 PM
How do i insert of spacer rows between rows in large spreadsheets laurel Excel Discussion (Misc queries) 0 April 24th 06 01:38 PM
Copy Rows and insert these rows before a page break AQ Mahomed Excel Programming 0 June 8th 04 09:09 AM


All times are GMT +1. The time now is 06:50 PM.

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

About Us

"It's about Microsoft Excel"