# VBA FV Function

Home ➜ VBA Functions LIST (Category Wise) ➜ **How to use the VBA FV Function (Syntax + Example)**

## What is VBA FV Function

The VBA FV function is listed under the financial category of VBA functions. When you use it in a VBA code, **it returns the future value of a loan or an investment**. In simple words, FV can calculate the future value of an investment or a loan using fixed periodic payments and a fixed rate of interest.

It just works like FV function in the worksheet.

## how to use it

To use VBA's FV function you need to understand its syntax and arguments:

### Syntax

**FV(Rate, Nper, Pmt, [Pv], [Due])**

### Arguments

**Rate**: The rate of interest, per period.**Nper**: The number of periods to pay the loan or investment.**Pmt**: The fixed amount of payment.**[Pv]**: The present value of the loan/investment. (This is an optional argument and if omitted VBA will take 0 by default).**[Due]**: An argument to defines whether the payment is due at the start or the end of the period (This is an optional argument and if omitted VBA will take the end of the period by default).

## Example to use FV Function in VBA

To practically understand how to use VBA FV function, you need to go through the below example where we have written a vba code by using it:

Sub example_FV() Range("A8") = FV(0.5 / 12, 5 * 12, -1500) End Sub

In the above code, we have used FV to calculate the future value of the investment. We have entered all the values directly into the function and it has returned **380896.7585** as the future value of the investment.

## Notes

Below are some important points which you need to take care while using FV function in VBA.

- Cash paid out should be supplied as a negative value.
- If “pv” or “PMT” is left blank then it will assume 0.

## Related Functions

About the Author

Puneet is using Excel since his college days. He helped thousands of people to understand the power of the spreadsheets and learn Microsoft Excel. You can ﬁnd him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.