Insert Row, copy formula from above

  • Hello,


    I need to insert a row every time at row 98
    But when I do this the formule from above is not copied.


    I try it with this code:

    Code
    Sheets(strSheetName).Rows("98:98").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove


    But a row is inserted, without the formule from row 97


    Can somebody help?


    aisietie

  • Re: Insert Row, copy formula from above


    Perhaps

    Triumph without peril brings no glory: Just try

  • Re: Insert Row, copy formula from above


    PCI,


    OK, this works, and solves my problem.


    Thanks, I just wonder if this can be done with a 1-liner


    aisietie

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!