Hi All,
I have the below macro which works fine to insert 10 rows, but is looking at if a column is populated to do the insert. What I require is a macro that inserts 10 rows on every 4th line of the sheet regardless if the column has any text or not, preferable doing it a nth number of times. Any ideas good people? Thanks in advance
Sub InsertRowEveryXrows()
Dim x As Integer
x = 2
Do
Rows(x).Resize(9).Insert
x = x + 10
Loop Until IsEmpty(Cells(x, "A"))
End Sub
I have the below macro which works fine to insert 10 rows, but is looking at if a column is populated to do the insert. What I require is a macro that inserts 10 rows on every 4th line of the sheet regardless if the column has any text or not, preferable doing it a nth number of times. Any ideas good people? Thanks in advance
Sub InsertRowEveryXrows()
Dim x As Integer
x = 2
Do
Rows(x).Resize(9).Insert
x = x + 10
Loop Until IsEmpty(Cells(x, "A"))
End Sub