for loop vba- I am n

Status
Not open for further replies.

DIANAmp

New Member
Joined
Aug 9, 2021
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
sing VBA Build a loan calculator subroutine that will display the total interest paid over the life of a loan. Make this interactive so that the user will be prompted for:

· The loan Amount
· The number of Years
· The frequency (number of payments per year)
· The interest Rate (APR)

You will need to determine how much of each payment goes toward interest and then sum the interest up.

Set your default loan amount to $100,000
Set the default term to 15 years
Set the default frequency to 12 payments per year
Set your default interest rate to 5% APR


Hints:
You will need 4 input boxes
You can solve mathematically or utilize the Excel function IPMT to solve for the interest portion of the payment each period.
Then total the interest payments up using a loop.
In a message box, output two things:
· the total amount of all the payments
· the total interest paid over the life of the loan
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the MrExcel board!

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top