How to use IRR function in VBA?
In VBA (Visual Basic for Applications), used mainly in Microsoft Excel, the IRR function computes the Internal Rate of Return for a schedule of cash flows that is not necessarily periodic. To use the IRR function in VBA, you’ll need to have your cash flows stored in an array. Here’s how the IRR function works