Question: This VBA SUBROUTINE 1) Write a subroutine that asks the user for: The deposit Amount The additional contribution (deposit) each year The number of Years
This VBA SUBROUTINE
1) Write a subroutine that asks the user for: The deposit Amount The additional contribution (deposit) each year The number of Years The interest Rate (APR) Then, display the future value of the users account each year for some number of years. Also show the growth from the original investment only. You can do this using a loop inside your message box. Set your default deposit amount to $10,000 Set your default annual contribution to $500 Set the default term to 5 years Set your default interest rate to 2% So, if I use the default values above, I should get the following values in my message box: 1 st Year: $10,700.00 Growth $700.00 2 nd Year: $11,414.00 Growth $1414.00 3 rd Year: $12,142.28 Growth $2142.28 4 th Year: $12,885.13 Growth $2885.13 5 th Year: $13,642.83 Growth $3642.83 Hints: You will need several input boxes Inside the message box which outputs the answers, you will want to output each future value and the growth from the original investment only (the growth amount will include interest and annual contributions). You will want to use a loop to output the results Chr(13) is the syntax for carriage return (new line) Chr(9) is the syntax for tab (inserting a few spaces)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
