Adding Lines to a worksheet

D

Deborah Allen

I know there is a macro that when active, will
automatically add additional lines to a worksheet. What
is that macro?
 
M

mzehr

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

icestationzbra

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

Gord Dibben

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
 
Top