Adding rows?

C

cambanis

Hello everyone!
I have a spreadsheet full of data (560x15) and I would like to add one new
row bellow each one existing (1120x15).
Can I do it? (I can manually select rows one by one having CTRL pressed and
then insert Insert Row, but it takes a lot...)
Thanks!
 
J

John Fuller

You would want a macro for this.

Try running this with the sheet showing. Should do the trick.

Sub addrow()
Dim t
Application.ScreenUpdating = False
For t = 2 To 1130 Step 2
Cells(t, 1).EntireRow.Insert
Next t
Application.ScreenUpdating = True
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