Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This macro FUNCTION calculates the present value of a lump sum using values PASSED to the function (as arguments) for the cash flow (FV), the

image text in transcribed

This macro FUNCTION calculates the present value of a lump sum using values PASSED to the function (as arguments) for the cash flow (FV), the discount rate, and the number of discounting periods. 54,350 12.5% Recall the present value of a lump sum equals FVN/(1 + rate)" Cash Flow Discount Rate Number of period PV of Cash Flow 5 Tasks: a) Code a function macro named 'PV_function' The macro will be coded (not recorded) in the VBA editor in a MODULE. If necessary, insert a module (NOT a CLASS MODULE), then use the INSERT menu to create a Function (not a subroutine) Within the macro: * The function's signature accepts three arguments: the cash flow, the discount rate, and the number of discounting periods. I suggest using legal variable names that 'sound like the data they store. * Calculate the Present Value of the lump sum: PV = FVN/ (1 + i)^ and return the PV to the cell from which the function is called. * Call the macro from cell K5 Check the output to ensure the PV was calculated correctly. b) Change the value in cell K2 to 29,500 and notice that the PV updates automatically. c) Open the VBA editor and copy and paste your 'PV_function' macro code on this worksheet (below). This macro FUNCTION calculates the present value of a lump sum using values PASSED to the function (as arguments) for the cash flow (FV), the discount rate, and the number of discounting periods. 54,350 12.5% Recall the present value of a lump sum equals FVN/(1 + rate)" Cash Flow Discount Rate Number of period PV of Cash Flow 5 Tasks: a) Code a function macro named 'PV_function' The macro will be coded (not recorded) in the VBA editor in a MODULE. If necessary, insert a module (NOT a CLASS MODULE), then use the INSERT menu to create a Function (not a subroutine) Within the macro: * The function's signature accepts three arguments: the cash flow, the discount rate, and the number of discounting periods. I suggest using legal variable names that 'sound like the data they store. * Calculate the Present Value of the lump sum: PV = FVN/ (1 + i)^ and return the PV to the cell from which the function is called. * Call the macro from cell K5 Check the output to ensure the PV was calculated correctly. b) Change the value in cell K2 to 29,500 and notice that the PV updates automatically. c) Open the VBA editor and copy and paste your 'PV_function' macro code on this worksheet (below)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Regulation A+ How The JOBS Act Creates Opportunities For Entrepreneurs And Investors

Authors: Paul Getty , Dinesh Gupta , Robert R. Kaplan

1st Edition

1430257318,1430257326

More Books

Students also viewed these Finance questions

Question

6. What are the artistic proofs?

Answered: 1 week ago