Question: Create a VBA subroutine [call it Exercise2( ) ] which generates five random numbers and prints them out on the screen in a message box

Create a VBA subroutine [call it Exercise2( ) ] which generates five random numbers and prints them out on the screen in a message box like the following:

Microsoft Excel The random numbers are 0.9057, 0.2614, 0.7852, 0.3789, 0.2897 NOK

Use FormatNumber (Expression, NumDigitsAfterDecimal) to print out only four digits.

Microsoft Excel The random numbers are 0.9057, 0.2614, 0.7852, 0.3789, 0.2897 NOK

Step by Step Solution

3.53 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You can use the following VBA code to create the Exercise2 subroutine that generates five random num... 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 Financial Modeling Questions!