Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Insert_Rows()
'Inserts row every 2nd row.
'Place cursor on top row of data.
Application.ScreenUpdating = False
toprow = ActiveCell.Row
'Rows are inserted based on last row of worksheet -
'i.e. rows are inserted for all data in sheet.
botmrow = ActiveCell.SpecialCells(xlLastCell).Row
'OPTION: Insert rows based on a specific column.
'The line commented-out below inserts entire rows, but
'inserted rows are based on last row used in column A.
'botmrow = [A65536].End(xlUp).Row
initrows = botmrow - toprow + 1
ttlrows = Int(initrows / 2) - 1
ActiveCell.Offset(2, 0).EntireRow.Insert shift:=xlDown
ii = 5
For i = 1 To ttlrows
ActiveCell.Offset(ii, 0).EntireRow.Insert shift:=xlDown
ii = ii + 3
Next i
Application.ScreenUpdating = True
End Sub