Função MIRR [VBA]

Calcula a taxa interna de retorno modificada para uma série de investimentos.

warning

This constant, function or object is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.


Sintaxe:


MIRR(Values() as Double, Investment as Double, ReinvestRate as Double)

Valor de retorno:

Double

Parâmetros:

Values(): An array of cash flows, representing a series of payments and income, where negative values are treated as payments and positive values are treated as income. This array must contain at least one negative and at least one positive value.

taxa_financ: é a taxa de juros do investimento (os valores negativos da matriz).

taxa_reinvest: a taxa de juros do reinvestimento (os valores positivos da matriz).

Códigos de erro

5 Chamada de procedimento inválido

Exemplo:


REM ***** BASIC *****
Option VBASupport 1
Sub ExampleMIRR
 Dim cashFlow(0 to 3) As Double
 cashFlow(0) = -5
 cashFlow(1) = 10
 cashFlow(2) = 15
 cashFlow(3) = 8
 mirrValue = MIRR(cashFlow,0.5,0.1) * 100
 Print mirrValue ' devolve 94,16 . A taxa interna de retorno modificada do fluxo de caixa.
End Sub

Necessitamos da sua ajuda!