ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   insert rows (https://www.excelbanter.com/excel-programming/315487-insert-rows.html)

choice[_2_]

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

Bob Phillips[_6_]

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





All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com