Hello
Sorry this could be really simple but I've spent hours and feel like I'm going round in circles! Any help would be really appreciated.
I want a macro to insert a new row below the current active cell, then copy and paste format and formula from row 8 into that new row. I have been trying the below;
Sub Insert_Row()
ActiveCell.EntireRow.Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("8:8").Select
Selection.Copy
ActiveCell.EntireRow.Select
ActiveSheet.Paste
End Sub
When I do it though, it inserts the new row but not the formulas. It also ends with highlighting row 8 - I want it to either highlight all the new row, or just the B cell in the newly created row.
Please help!
Thanks
Sorry this could be really simple but I've spent hours and feel like I'm going round in circles! Any help would be really appreciated.
I want a macro to insert a new row below the current active cell, then copy and paste format and formula from row 8 into that new row. I have been trying the below;
Sub Insert_Row()
ActiveCell.EntireRow.Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("8:8").Select
Selection.Copy
ActiveCell.EntireRow.Select
ActiveSheet.Paste
End Sub
When I do it though, it inserts the new row but not the formulas. It also ends with highlighting row 8 - I want it to either highlight all the new row, or just the B cell in the newly created row.
Please help!
Thanks