Question: *Please Solve BOTH PROBLEMS with VBE in Microsoft Excel* *Please provide the Entire code and the results in The Excel Workbook* Create five variables: runners
*Please Solve BOTH PROBLEMS with VBE in Microsoft Excel*
*Please provide the Entire code and the results in The Excel Workbook*
- Create five variables: runners name, number of runs, number of miles ran, total miles ran, i. Using a loop, create input boxes to calculate total miles ran. Then, create a message box that states: [runners name] ran a total of [total miles ran] during the week. Within the brackets, variables should be used. Use the following input values when running the macro:
-
- runners name = Nancy Smith
- run #1 = 3.8 miles
- run #2 = 4.1 miles
- run #3 = 2.5 miles
- Create a new, private, variable called: strName as a data type: string. Set this new variables value to your name. Then use an IF function: If strName = your name, create a message box that states: [Your Name] is the sales person. If not, have the message box state Error. (Hint: All string data points must be enclosed within double quotation marks.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
