teatimecrumpet
Active Member
- Joined
- Jun 23, 2010
- Messages
- 307
Hi,
I have a sheet where the rows 1 to x will change every time it is updated. The bottom row must stay as the bottom row as it totals all the rows above it.
What I'm trying to do is insert a row before the total row and then autofill that inserted row with the row directly above that.
I'm having trouble with the below code. Where after insertion of the row choosing the row for autofill into the row that was inserted....
ANY help is appreciated.
Thanks!
I have a sheet where the rows 1 to x will change every time it is updated. The bottom row must stay as the bottom row as it totals all the rows above it.
What I'm trying to do is insert a row before the total row and then autofill that inserted row with the row directly above that.
I'm having trouble with the below code. Where after insertion of the row choosing the row for autofill into the row that was inserted....
ANY help is appreciated.
Thanks!
Sheets("NEW").Range("A1048576").End(xlUp).EntireRow.Insert _ Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("NEW").Range("A1048576").End(xlUp).Offset(-2, 0).EntireRow.AutoFill _
Destination:=DSRWKB.Sheets("NEW").Range("A1048576").End(xlUp).Offset(-1, 0), Type:=xlFillDefault