Module
Contents
Index 🔎︎

# IPmt Function [VBA]

Calculates the periodic amortizement for an investment with regular payments and a constant interest rate.

该功能或常量可通过以下语句启用：Option VBASupport 1，该语句需要放置在模块的每个可执行程序代码的前面。

## 语法：

    IPmt(Rate as Double, Per as Double, NPer as Double, PV as Double, [FV as Variant], [Due as Variant])

## 返回值：

Double

## 参数：

Rate is the periodic interest rate.

Per is the period, for which the compound interest is calculated. Period=NPER if compound interest for the last period is calculated.

NPer is the total number of periods, during which annuity is paid.

PV is the present cash value in sequence of payments.

FV (optional) is the desired value (future value) at the end of the periods.

Due (optional) is the due date for the periodic payments.

0 - the payment is due at the end of the period;

1 - the payment is due at the beginning of the period.

## 错误代码：

5 无效的过程调用

## 示例：

    Sub ExampleIPmt

     Dim myIPmt As Double

     myIPmt = IPmt(0.05,5,7,15000)

     Print myIPmt ' returns -352.97 currency units. The compound interest during the fifth period (year) is 352.97 currency units.

    End Sub

相关主题

IPMT function in CALC

VBA 财务函数