add row

I

israel

Hello,

I have a spreadsheet that has 250 rows, I have to add a blank row after
every fifth row, is there a formula to apply to my spreadsheet. Manually is
quite a hassle.

Thank you, all
 
D

Don Guillett

Sub addrowevery5()
counter = 6
Do Until Cells(counter, "a") = ""
Rows(counter).Insert
counter = counter + 6
Loop
End Sub
 
I

israel

Sorry to bother, can you be more specific how to execute the formula, I'm a
bit confused.

Thank you again
 
D

Don Guillett

Formulas can not do anything except return a value. This is not a formula.
It is a macro
 

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