ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Rows Insertion (https://www.excelbanter.com/excel-discussion-misc-queries/95454-rows-insertion.html)

b166er

Rows Insertion
 

hi members
how can I insert rows after every fiftth row I have data of more than
6000 rows that means I want to insert 2000 rows in that sequence


--
b166er
------------------------------------------------------------------------
b166er's Profile: http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=554555


excelent

Rows Insertion
 
think some like this:
Sub tst()
Dim r
For r = 1 To 6000 Step 5
Cells(r, 1).Activate
ActiveCell.EntireRow.Insert
Next
End Sub

not sure what fiftth means :-)



All times are GMT +1. The time now is 02:33 PM.

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