Question: Using Visual Basic for Applications (VBA), and only the input data given below, create a macro in Excel that calculates the Macauley's Duration for

Using Visual Basic for Applications (VBA), and only the input data given

Using Visual Basic for Applications (VBA), and only the input data given below, create a macro in Excel that calculates the Macauley's Duration for the given bond using a For Next loop. The inputs for the macro code should be restricted to the data in green below: $ 69 69 69 69 69 69 9.38 9.38 $ 9.38 $ 9.38 $ 9.38 $1,009.38 Cash Flow $ Time Period Price = Asked yield 1 2 3 456 2.345 Problem #4 (20 points) PV of Cash Flow 9.27 9.16 9.05 8.95 8.84 941.19 986.4610 For the same bond, create a separate macro that calculates the Modified Duration. For this problem you may use only the information in green above, as well as the Macauley's Duration you calculate in Problem #3.

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the VBA code to calculate Macauleys Duration and Modified Duration for the given bond us... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!