Macro to insert a row after every 4th row

A

Amandar097

I need a macro that will insert a blank row after every fourth row in my
spreadsheet.

Thanks!
 
D

Don Guillett

try

Sub insertrowevery4throw()
For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4
Rows(i).Insert
Next i
End Sub
 
A

Amandar097

Thanks Don - that's exactly what I needed :)

Don Guillett said:
try

Sub insertrowevery4throw()
For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4
Rows(i).Insert
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top