macro to insert row and copy previous row + excel
Sorry again first reply did not work. If this one does not work I will start
a new thread.
Sub Add_Student()
'
' Add_Student Macro
' Macro recorded 21/12/2009 by Phil
'
'
Application.Goto Reference:="First_Table"
Range("A26").Select
Selection.EntireRow.Insert
Range("F25:Y25").Select
Selection.AutoFill Destination:=Range("F25:Y26"), Type:=xlFillDefault
Range("F25:Y26").Select
Range("A27").Select
End Sub
--
Laura
"Otto Moehrbach" wrote:
Always post your code. HTH Otto
"Biffo" wrote in message
...
I have a named range First_Table (A5:AB30 ) and a named range End_Table
(A30).
I would like to insert a row above the named range End_Table (A30).
Then copy the contents and formula from cells F29:AB29 into the new row.
However every time I run the macro it seems to insert the new row in a
different place which is messing up my data.
Can anyone help me please?
--
Laura
.
|