I can do the operation manually but when I record it as a macro then run the
macro it is not quite right. It works fine if I want to add just one new
row. However, when I need run the macro to add further rows the macro always
returns me to the point (row) where the I ran it for the first time. Does
anyone know what I need to put into the macro, when editing it, to stop this
happening?
As always post your macro for comments.
Look at this and see if it is what you need:
Sub InsertRowBelow()
ActiveCell.Offset(1, 0).EntireRow.Insert
ActiveCell.EntireRow.Copy Range("A" & ActiveCell.Row + 1)
End Sub
Regards,
Per
"lorenzo" <lor...@discussions.microsoft.com> skrev i meddelelsen
news:C0AF08B6-A5C7-4620...@microsoft.com...
Sub test()
Cells(ActiveCell.Row + 1, ActiveCell.Column).EntireRow.Insert
Shift:=xlDown
ActiveCell.EntireRow.Copy Destination:=Cells(ActiveCell.Row + 1,
ActiveCell.Column).EntireRow
End Sub
Regards,
Stefi
„lorenzo” ezt írta:
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguil...@austin.rr.com
"lorenzo" <lor...@discussions.microsoft.com> wrote in message
news:C0AF08B6-A5C7-4620...@microsoft.com...