Hi,
My macro inserts a row but I am finding that not all of the formulas are on the new row. The line above and below the inserted line have the formulas in the cells. The data validation cells in the new row work fine with the current macro, it is only my sumif formulas that do not appear to be copied to the new row.
Any Suggestions?
Also, was the VBA code properly entered in thread?
Thank you for your help,
Chris
My macro inserts a row but I am finding that not all of the formulas are on the new row. The line above and below the inserted line have the formulas in the cells. The data validation cells in the new row work fine with the current macro, it is only my sumif formulas that do not appear to be copied to the new row.
Any Suggestions?
Code:
Sub Insert_Rows()
' Insert_Rows Macro
Application.ScreenUpdating = False
ActiveSheet.Unprotect Password:="XXXX"
ExtraRows = Range("N1") '****** edit to suit
Rows(39 + ExtraRows).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("N1") = Range("N1") + 1
ActiveSheet.Protect Password:="XXXX"
End Sub
Also, was the VBA code properly entered in thread?
Thank you for your help,
Chris