Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you please write step by step on how I can do the following... Challenge Yourself 10.3 In this project, you will record a macro
Can you please write step by step on how I can do the following...
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 Customizing the Quick Access Toolbar Adding a Custom Tab to the Ribbon Adding a Macro to a Form Control Button Running a Macro . . . . 1. Open the start file EX2016-Challenge Yourself-10-3. The file will be renamed automatically to include your name. 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: [your initials]EX2016-Challenge Yourself-10-3 6. a. 4. Display the Developer tab. (If you already have the Developer tab enabled, skip to step 5.) 5. Begin with the Class Analysis worksheet active. Create a macro to calculate yearly totals and yearly averages for each student. 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 table header row. 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" Challenge Yourself 10.3 Last Updated 12/11/17 ach: Excel 2016 Chapter 10: Working with Macros a. c. 8. Add the CalculateGrades macro to the Quick Access Toolbar for just this workbook. 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 Name the new macro: ShowTotalRow b. Do not include a keyboard shortcut. 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. Name the new macro: Hide TotalRow 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. m a. n a. a. 12. Add a form button to the Class Analysis worksheet to run the CalculateGrades macro. Place the button to cover cells J1:L2. b. Edit the button label text to: Calculate Grades 13. Add a form button to the Class Analysis worksheet to run the ShowTotalRow macro. a. Place the button to cover cells 14:L5. b. Edit the button label text to: Show Assignment Averages 14. Add a form button to the Class Analysis worksheet to run the Hide TotalRow macro. Place the button to cover cells 57: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 Calculate Grades macro using any method. 20. Use the Show Assignment Averages button to run the ShowTotalRow macro. 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 Customizing the Quick Access Toolbar Adding a Custom Tab to the Ribbon Adding a Macro to a Form Control Button Running a Macro . . . . 1. Open the start file EX2016-Challenge Yourself-10-3. The file will be renamed automatically to include your name. 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: [your initials]EX2016-Challenge Yourself-10-3 6. a. 4. Display the Developer tab. (If you already have the Developer tab enabled, skip to step 5.) 5. Begin with the Class Analysis worksheet active. Create a macro to calculate yearly totals and yearly averages for each student. 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 table header row. 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" Challenge Yourself 10.3 Last Updated 12/11/17 ach: Excel 2016 Chapter 10: Working with Macros a. c. 8. Add the CalculateGrades macro to the Quick Access Toolbar for just this workbook. 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 Name the new macro: ShowTotalRow b. Do not include a keyboard shortcut. 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. Name the new macro: Hide TotalRow 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. m a. n a. a. 12. Add a form button to the Class Analysis worksheet to run the CalculateGrades macro. Place the button to cover cells J1:L2. b. Edit the button label text to: Calculate Grades 13. Add a form button to the Class Analysis worksheet to run the ShowTotalRow macro. a. Place the button to cover cells 14:L5. b. Edit the button label text to: Show Assignment Averages 14. Add a form button to the Class Analysis worksheet to run the Hide TotalRow macro. Place the button to cover cells 57: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 Calculate Grades macro using any method. 20. Use the Show Assignment Averages button to run the ShowTotalRow macro
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