Question: Problem 4 : ( Note: Save your code in module ModuleProblem 4 ) 1 . Write a function MyFunction which takes as input a range
Problem : Note: Save your code in module ModuleProblem
Write a function MyFunction which takes as input a range and an integer which
returns:
a The sum of the range if the integer argument value is
b The sum of squares of the range if the integer argument value is
c The average of the range if the integer argument value is
d Nothing if the integer argument value is anything else
Use VBA to place the function from part in cell C on the worksheet A First use input
boxes to take the input arguments. Set the default value of the range argument to
a:a A command button that calls this sub should be placed on worksheet A
Hint: Use the formula property
Write a sub which appends a random number between and inclusive of cells with a
random value between and inclusive to the end of the list of numbers in column A
When the workbook is opened:
a Select worksheet B
b Call the sub from part
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
