mojitoman6
New Member
- Joined
- Oct 28, 2014
- Messages
- 31
Hello,
I am currently using this macro to add a new row to the bottom of a named range (also copy formulas into this new row), and then rename the entire thing again (new row included)..
However, this is currently eating up everything below the named range as new rows are added (it will add rows on top of data below the named range)
Is there anyway i can somehow incorporate shifting the entire worksheet down when a new row is added to the named range? so the macro won't write over data below...?
I am currently using this macro to add a new row to the bottom of a named range (also copy formulas into this new row), and then rename the entire thing again (new row included)..
Code:
Sub AddNewRow()
Dim nameOfRange As String
nameOfRange = "Week1"
With Range(nameOfRange)
With .Rows(.Rows.Count).Resize(2)
.FillDown
Range(Range(nameOfRange), .Cells).Name = nameOfRange
End With
End With
End Sub
However, this is currently eating up everything below the named range as new rows are added (it will add rows on top of data below the named range)
Is there anyway i can somehow incorporate shifting the entire worksheet down when a new row is added to the named range? so the macro won't write over data below...?