Adding Lines to a worksheet

  • Thread starter Thread starter Deborah Allen
  • Start date Start date
D

Deborah Allen

I know there is a macro that when active, will
automatically add additional lines to a worksheet. What
is that macro?
 
Hi Deborah,
Try this posting by Bob Phillips:

Sub InsertRowsAndFillFormulas()
Dim x
x = InputBox( _
prompt:="How many rows do you want to add?", _
Title:="Add Rows")
If x = "" Or x < 1 Then
Exit Sub
Else
ActiveCell.Resize(x, 1).EntireRow.Insert
End If

End Sub
 
i dont think there is a readymade macro like that, you would have t
write one
 
Deborah

What kind of lines?

Do you mean "rows"?

Where would these be placed. How many? Under what conditions?

If you want more than 65536 rows on a worksheet, you can't do that.

Gord Dibben Excel MVP
 

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

Back
Top