Question: Joe Schmoe, a Texas A&M graduate, was tasked with coding an VBA function with the following properties. The function: * Is named Calc _ Rate

Joe Schmoe, a Texas A&M graduate, was tasked with coding an VBA function with the following properties. The function: * Is named Calc_Rate * Accepts three arguments and returns a rate * The first argument stores an annual rate (APR)* The second argument stores a 'm' value to indicate compounding frequency * The third argument stores an indicator * The function computes then returns a rate based on the following logic: If the indicator is the letter E, then the function should return the Effective Annual Rate (EAR)=(1+ APR / m)^ m -1 If the indicator is the letter P, then the function should return the periodic rate = APR / m If the indicator is other than the letter E or P, then the function should return the numeric error code -9.99% HOWEVER, Joe has created the function code (listed in column J but the code is NOT working correctly. Your tasks are: 1. Insert a module in the VBA editor. 2. Copy the code from column J (J3:J12) and paste into the code window in the module you just inserted in the VBA editor 3. In the VBA editor, correct the function code so that it executes without error AND completes the tasks as specified above. 4. Once the code is corrected, call the Calc_Rate function from cell E27 and pass in the exam information in cells B27, C27, and D27 as relative cell arguments separated by commas. 5. Copy the function call from cell E27 to E28:E296. Copy your subroutine code from the VBA editor and paste the code starting in cell B32.7. Copy (from the worksheet area starting in cell B32) and paste into column G, lines of code that match the description provided in column F.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!