Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN VBE IN EXCEL Write a function subroutine called MaxRange that mimics Excels MAXfunction. It should accept a range as the input argument and it
IN VBE IN EXCEL
Write a function subroutine called MaxRange that mimics Excels MAXfunction. It should accept a range as the input argument and it should return the largest value in that range. Just like the Excels MAX function, it should ignore strings and empty cells, and if the range contains no numbers it should return 0. (For simplicity, assume that we will not test your function with ranges that contain negative numbers, dates, times, or cells with errors.)
In Question3.xlsm, if we enterthe formula -MaxRange (A2:A8) into cell C2, as shown in figure below, we should get 14.1 as the result in cell C2. 12 5.5 string MaxRange(A2:A8) 5 7 14.1 Instructions: Do not create a button for this question You are not allowed to use Excel's MAX or MIN functions, or anyvariations of them, in your code. 4 25g6 15 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started