ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I insert a row ... (https://www.excelbanter.com/excel-programming/440393-how-do-i-insert-row.html)

fzl2007

How do I insert a row ...
 
I want to insert a blank row every two rows, with the consideration
that my first row is the title.

Thanks.
Faye

joel[_761_]

How do I insert a row ...
 

the best way is to go from the end of the sheet back to the beginning
like this


Lastrow = Range("A" & rows.count).end(xlup).row
for rowcount = Lastrow to 1 step -2
Rows(RowCount).insert
next rowCount


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=185766

Excel Live Chat



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

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