Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. In Excel worksheet, use an Active X command button. This button will generate random numbers between 0 and 1,000 in cells A1:E20. Note, put

3. In Excel worksheet, use an Active X command button. This button will generate random numbers between 0 and 1,000 in cells A1:E20. Note, put your command button in an area to the right of column E. The button should have a caption of "Random Number Generator" and be named cmdRandomNumber. The VBA code needed to generate the numbers is as follows.

Const rowmax As Long = 20

Const colmax As Long = 5

Dim r As Long, c As Long

For r = 1 To rowmax

For c = 1 To colmax

Cells(r,c) = Int(Rnd * 1000)

Next c

Next r

Reference: https://www.youtube.com/watch?v=NisHUnn-PZo

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

The Legal Environment of Business A Critical Thinking Approach

Authors: Nancy K Kubasek, Bartley A Brennan, M Neil Browne

6th Edition

978-0132666688, 132666685, 132664844, 978-0132664844

Students also viewed these General Management questions