+1443 776-2705 panelessays@gmail.com
Select Page

Complete Microsoft Excel 2016 Assignment

A Skills Approach: Excel 2016 Chapter 10: Working with Macros

Step 1
start file

Challenge Yourself 10.3
In this project, you will record a macro to calculate grade totals and modify it in VBA. You will then run the macro
on a second set of grades.

Skills needed to complete this project:

• Saving a Macro-Enabled Workbook or Template
• Adding the Developer Tab to the Ribbon
• Recording a Macro
• Modifying a Macro Using VBA
• Adding a Custom Tab to the Ribbon
• Adding a Macro to a Form Control Button
• Running a Macro

1. Open the start file EX2016-ChallengeYourself-10-3. The file will be renamed automatically

2. If the workbook opens in Protected View, enable editing so you can make changes to the
workbook.

3. Save the file as a macro-enabled workbook with this file name :

4. Display the Developer tab. (If you already have the Developer tab enabled, skip to step 5.)

5. Begin with the ClassAnalysis worksheet active.

6. Create a macro to calculate yearly totals and yearly averages for each student.

a. Name the new macro: CalculateGrades

b. Include the keyboard shortcut: Ctrl+Shift+G

c. Include the description: Calculate student totals and averages

d. In G1, create a column heading: Total

e. In H1, create a column heading: Average

f. Click cell A2.
g. Format the data as a table using the Table Style Medium 7 table style. Be sure to include the

h. In the Total column, use the SUM function to calculate the yearly total for each student.
i. In the Average column, use the AVERAGE function to calculate the yearly average for

each student.
j. Autofit columns G and H.

7. Edit the CalculateGrades macro to use the Blue, Table Style Medium 6, or Table Style Medium
6 table style instead of Table Style Medium 7.
Hint: Edit this line in the VBA code:
ActiveSheet ListObjects(“Table1”) TableStyle = “TableStyleMedium7”

1 | Page Challenge Yourself 10.3 Last Updated 12/11/17

A Skills Approach: Excel 2016 Chapter 10: Working with Macros

9. Create a macro to display the table Total row and display the class average for each assignment. Hint:
to display the table Total row, check the Total Row check box on the Table Tools Design tab, Table
Style Options group.
a. Name the new macro: ShowTotalRow

b. Do not include a keyboard shortcut.

c. Include the description: Show Total row with averages

d. Display the table Total row.

e. Change the text in the first cell of the Total Row to: Class Averages

f. Select Average in the Total row for columns C:H.

10. Create a macro to hide the table Total row. Hint: This macro has only one action: Uncheck the Total
Row check box on the Table Tools Design tab, Table Style Options group.
a. Name the new macro: HideTotalRow

b. Do not include a keyboard shortcut.
c. Include the description: Hide the Total row

11. If you have permission, create a new custom Ribbon tab for the macros.

a. Name the new custom tab: My Macros

b. Name the new custom group: Challenge Macros

c. Add the three macros you created during this project.

12. Add a form button to the ClassAnalysis worksheet to run the CalculateGrades macro.
a. Place the button to cover cells J1:L2.

b. Edit the button label text to: Calculate Grades

13. Add a form button to the ClassAnalysis worksheet to run the ShowTotalRow macro.
a. Place the button to cover cells J4:L5.

b. Edit the button label text to: Show Assignment Averages

14. Add a form button to the ClassAnalysis worksheet to run the HideTotalRow macro.
a. Place the button to cover cells J7:L8.
b. Edit the button label text to: Hide Assignment Averages

15. Test the Show Assignment Averages and Hide Assignment Averages buttons.

16. Clear all content and formatting from rows 1:10. Caution: If you delete the rows, you will delete the
buttons as well. Instead, use the Clear All command from the Home tab, Editing group.

17. Go to the Class101B worksheet and copy the data in cells A1:F10.

18. Go to the ClassAnalysis worksheet and paste the copied data beginning in cell A1.

19. Run the CalculateGrades macro using any method.

20. Use the Show Assignment Averages button to run the ShowTotalRow macro.

2 | Page Challenge Yourself 10.3 Last Updated 12/11/17

A Skills Approach: Excel 2016 Chapter 10: Working with Macros

Step 2
Save

Step 3
Project

21. Save the workbook.

22. If you are going to submit this project in SIMnet, save a copy of it as a regular Excel workbook
(without macros).

NOTE: When saving, a message will appear starting with “The following features cannot be saved in
macro-free workbooks”. Click Yes to continue saving the file as a macro-free Excel workbook.

23. If you added a custom tab to the Ribbon, you may want to remove it before closing the workbook.

24. Close the workbook.

25. Upload and save the regular Excel workbook file.

3 | Page Challenge Yourself 10.3 Last Updated 12/11/17

• Challenge Yourself 10.3

## ClassAnalysis

 Student ID Last Name Word Excel PowerPoint Access 1001 Brown 90 89 92 93 1002 Jackson 78 82 85 80 1003 Smith 91 75 89 88 1004 Juarez 98 95 95 100 1005 Jones 67 65 57 69 1006 Black 82 89 91 92 1007 Carson 100 98 97 99 1008 Omari 78 80 77 75 1009 Erkstrom 87 93 90 88

## Class101A

 Student ID Last Name Word Excel PowerPoint Access 1001 Brown 90 89 92 93 1002 Jackson 78 82 85 80 1003 Smith 91 75 89 88 1004 Juarez 98 95 95 100 1005 Jones 67 65 57 69 1006 Black 82 89 91 92 1007 Carson 100 98 97 99 1008 Omari 78 80 77 75 1009 Erkstrom 87 93 90 88

## Class101B

 Student ID Last Name Word Excel PowerPoint Access 1010 Zhu 90 92 92 100 1011 Davidson 72 78 88 90 1012 Alvarez 91 75 89 88 1013 Brown 90 80 85 85 1014 Jones 67 65 57 69 1015 Swanson 82 89 91 92 1016 Lawson 75 80 85 88 1017 Shores 78 80 77 75 1018 Beck 95 90 98 75