Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are working in MM Auto s Sales Department as an analyst. The sales manager, Leroy Mason, wants to automate the worksheet he uses to
You are working in MM Autos Sales Department as an analyst. The sales manager, Leroy Mason, wants to automate the worksheet he uses to calculate monthly sales commissions so that others can use it MM Auto pays each salesperson a base salary plus a commission. This commission value has changed so this value for all new entries should be of the sales amount. Leroy asks for your help in ensuring users enter valid data and do not change or delete the sales data the workbook already contains. He also wants to include a chart comparing the total sales of each salesperson without revealing their names.
Complete the following:
Open the ABBCCarSales.xlsx workbook and save the file as the macroenabled workbook ABBCCarJulySalesyourlastnamexlsm
On the SalesRepSummary worksheet, summarize each salespersons total sales and total commissions based on the data listed on the SalesList worksheet. Make sure that the table will autoupdate when new data is added to the SalesList through row
Examine the SalesEntryForm worksheet and correct its formula error. Create validation rules so that unique sales rep names appear in a dropdown list using the data on the SalesRepSummary worksheet, sales dates are limited to valid dates in and sales amounts must be positive values. Annotate the validation rules so users entering the data will know what data to enter and what is allowed.
Create a macro named UpdateSalesList with shortcut key CtrlShiftC assigned to this workbook. The purpose of the macro is to automate the moving of the data entered in the sales entry form to the SalesList worksheet and then to clear the data in the sales entry form. Create a custom button on the SalesEntryForm worksheet with the label Record Sale that automatically launches this macro. For best results, use the following procedure:
a Before recording the macro, assign range names to the following cells:
SalesEntryForm!B SalesRepName
SalesEntryForm!B SalesDate
SalesEntryForm!B SalesAmount
SalesEntryForm!B Commission
SalesList!A Top
b Click the Use Relative References button in the code section of the Developer tab to make sure that when recording your macro, the insertion point is relative to the active cell. Be sure the button is highlighted in dark gray to indicate that the feature is on before you begin recording the macro.
c Enter some sample data into the sales entry form
d Click Record Macro, then assign the appropriate name and shortcut key. Store the macro in this workbook and enter a brief description
e Open the Go To box by pressing the F function key, then select Top in the list of range names to move the starting point on the SalesList worksheet to cell A
f Press Ctrl to move the active cell to the bottom of the list. Then, using the arrow keys, move the active cell down one row to the first empty cell. Type SalesRepName. Move to the next column where the user will enter the sales date, and then type SalesDate. Repeat this procedure to enter the sales amount and commission using their corresponding range names.
g Copy the cells with the formulas you just entered, and then use the Paste Special Values option to paste the cells in the same location. This paste action removes the formulas but keeps the values that appear in the data entry form.
h Go to the SalesRepName range and delete the entry. Move down one cell and delete the sales date and sales amount. You must clear the input data to leave the cells ready for the next user to enter new data. Press the Esc key.
i Stop recording the macro.
j Create a custom macro button called Record Sale Info on the SalesEntryForm worksheet that automatically launches this macro.
k Remove the sample data from the SalesList worksheet that you used while recording the macro.
NOTE: It is common for this macro to crash with an error. If that happens, the easiest thing is to delete your macro and rerecord it Make sure that you are following the directions above closely, such as using the keyboard specifically when specified instead of your mouse.
Step 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