Question

Starting from a blank spreadsheet, create a macro that: Is named MyMacro Is invoked with CTRL-SHIFT-L Asks the user for the
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Record Macro Macro name: MyMacrol Shortcut key Ctri Shift+L Store macro in This Workbook Description: Click below record macr

VBA code below:

Sub MyMacro()

MYVALUE = InputBox("enter number between 10 to 100")
If MYVALUE < 10 Or MYVALUE > 100 Then
MsgBox "Please enter value between 10 to 100"
Else
ActiveCell.FormulaR1C1 = "=RAND()"
For i = 1 To MYVALUE
Cells(i, 1) = "=RAND()"
Next i
End If
Range("B1").Select
ActiveCell.FormulaR1C1 = "=AVEDEV(C[-1])"
Range("B2").Select
ActiveCell.FormulaR1C1 = "=STDEV.P(C[-1])"
End Sub

Copy paste the above part in MyMacro

Parekn, Kunjesh Sort & nd&hare Web Check Cell Linked Cell Inset Delete Tormst きQear Furmalling Tabe enter number betwzen 1u t

Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!

Add a comment
Know the answer?
Add Answer to:
Starting from a blank spreadsheet, create a macro that: Is named "MyMacro" Is invoked with CTRL-SHIFT-L Asks the user for the number of uniforms [0,1] observations to generate. Valid resp...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT