ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Add a Row Every Fourth Row (https://www.excelbanter.com/excel-worksheet-functions/192636-add-row-every-fourth-row.html)

daphoenix

Add a Row Every Fourth Row
 
After I delete all blank rowes I want to add a blank row every 5th row.

Bob Phillips[_3_]

Add a Row Every Fourth Row
 
For how far

For i = LastRow to 1 Step -4

Rows(i).Insert
Next i

--
__________________________________
HTH

Bob

"daphoenix" wrote in message
...
After I delete all blank rowes I want to add a blank row every 5th row.




daphoenix

Add a Row Every Fourth Row
 
for like a 100 rows


"Bob Phillips" wrote:

For how far

For i = LastRow to 1 Step -4

Rows(i).Insert
Next i

--
__________________________________
HTH

Bob

"daphoenix" wrote in message
...
After I delete all blank rowes I want to add a blank row every 5th row.





Bob Phillips[_3_]

Add a Row Every Fourth Row
 
Replace LastRow with 100 then.

--
__________________________________
HTH

Bob

"daphoenix" wrote in message
...
for like a 100 rows


"Bob Phillips" wrote:

For how far

For i = LastRow to 1 Step -4

Rows(i).Insert
Next i

--
__________________________________
HTH

Bob

"daphoenix" wrote in message
...
After I delete all blank rowes I want to add a blank row every 5th row.








All times are GMT +1. The time now is 08:04 AM.

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