Sub IRR()
' Autofill IRR from Cell F10
Range("F10").Select
ActiveCell.FormulaR1C1 = "=XIRR(R10C2:RC[-4],R10C1,RC[-5])"
Range("F10").Select
Selection.AutoFill Destination:=Range("F10", Range("A10").End(xlDown))
End Sub
What I am trying to replicate is the automatic IRR calculation in the right coulumn, in my case starting in cell "F10". I can't get it to stop where column A and B stop, these are dynamic ranges and vary from security to security. Any ideas?
In addition, I'll add a GoalSeek function as soon as I have figured out this IRR calculation. Thank you for your help!