Adding Rows to Worksheet

C

C Jacobs

I have a worksheet with 312 rows and I want to add 4
blank rows below each existing row to imput some
additional datta. Can you tell me how to do this--short
of sitting there and adding them manually by doing insert
row. I have been trying to write a macro, however, it
keeps adding the rows at the top so I'm not doing
something correct.

Thanks!!!!
 
D

Don Guillett

Here's one way

Sub insert4rows()
lr = Range("A65536").End(xlUp).Row
For i = lr To 2 Step -1
Range(Cells(i, 1), Cells(i + 3, 1)).EntireRow.Insert
Next
end sub
 

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