|New Perspectives Excel 2019 | Module 12: SAM Project 1a|
DEVELOP AN EXCEL APPLICATION
- Open the file NP_EX19_12a_FirstLastNamexlsm, available for download from the SAM website.
- Save the file as NP_EX19_12a_FirstLastNamexlsm by changing the “1” to a “2”.
- If you do not see the .xlsm file extension in the Save As dialog box, do not type it. The program will add the file extension for you automatically.
- With the file NP_EX19_12a_FirstLastNamexlsm still open, ensure that your first and last name is displayed in cell B6 of the Documentation sheet.
- If cell B6 does not display your name, delete the file and download a new copy from the SAM website.
- To complete this project, you need to add the Developer tab. If this tab does not display, right-click any tab on the ribbon, and then click Customize the Ribbon on the shortcut menu. In the Main Tabs area of the Excel Options dialog box, click the Developer check box, and click OK.
- PROJECT STEPS
- Luis Palomba is in charge of community relations for Penta Insurance, a health insurance agency in Minneapolis, Minnesota. Luis is coordinating a program that sends tutors from Penta Insurance to area elementary schools. He is developing an Excel workbook to track and record the tutoring information, and needs to complete it before the upcoming Volunteer Fair. He asks for your help in automating the workbook.
Go to the Tutor Summary worksheet and then unprotect it so you can edit the contents.
- Luis wants to include an eye-catching title on the worksheet, which he shares with others at Penta Insurance.
Insert and format WordArt as follows:
- Insert WordArt using the Fill: Dark Red, Accent color 1; Shadow
- Type Penta Tutoring Program as the worksheet title.
- Change the text fill of the WordArt to Green, Accent 6, Darker 50%.
- Move the WordArt to row 1 so that it spans columns A:G.
- Luis created a macro to insert a plain worksheet title, and then attached the macro to the Insert Title button. He no longer needs the button.
Delete the Insert Title button in the range H5:H6.
- Luis plans to print the Tutor Summary worksheet before he visits tutors in the schools. He wants to use the Print Setup button to prepare the worksheet for printing.
Record a macro that sets up the worksheet for printing as follows:
- Record a macro named Print_Setup stored in the current workbook.
- With the macro recording, click the File tab on the ribbon, and then click Print.
- Change the page orientation to Landscape Orientation.
- Change the scaling setting to Fit Sheet on One Page.
- Return to the Tutor Summary
- Stop recording the macro.
- Luis created the Print Setup button using a Rounded Rectangle shape. He wants to be able to click the shape to run the Print_Setup macro.
Assign the Print_Setup macro to the Print Setup shape.
- Go to the Tutor Records worksheet, where Luis tracks tutor assignments. He and his staff usually enter the tutoring details directly on the worksheet. He wants to make sure everyone enters the tutoring data correctly, especially the dates in the Tutoring Start Date column. The tutoring program begins on March 22, 2021 and ends on May 14, 2021.
Create a data validation rule as follows:
- In the range C5:C18, create a data validation rule that accepts only date values between 3/22/21 and 5/14/21.
- Create an input message that uses Tutoring Start Date as the title and the following text as the input message:
Enter the date to start tutoring.
- Create a Stop style error alert that uses Invalid Date as the title and the following text as the error message:
Enter a date between March 22 and May 14.
- Luis wants to make sure all of the dates entered in the Tutoring State Date column are valid.
Identify and correct any invalid values as follows:
- In the range C5:C18, circle invalid data.
- Change the first invalid date to 3/24/21 and change the second invalid date to 3/26/21 to correct the errors.
- Go to the Tutor Registration During the Volunteer Fair, Luis and his staff will enter tutor information using the form on this worksheet. Luis has created two macros to automate this form, but they are not working correctly.
View and edit the macros as follows:
- Open the Clear_Form macro in the Visual Basic Editor. The macro should delete the values in the range C4:C8, but specifies the range C3:C7.
- In the Clear_Form macro VBA code, change the statement between the “‘Edit the code below” and “‘Edit the code above” comments to the following statement:
- Scroll down to display the code for the Add_Tutor macro, the second macro Luis created. This macro calls, or runs, the Clear_Form macro at the end of the code, so it should now work correctly. Save the code and then close the Visual Basic Editor.
- Assign the Clear_Form macro to the Clear Form button so that Luis and his staff can use the button to clear the form.
- Use the Clear Form button to clear the form and test the macro.
- The Add_Tutor macro should copy the data in the range C4:C8 on the Tutor Registration worksheet, go to the Tutor Records worksheet, find the next blank row, and then paste the copied data, transposing it to fit in a row instead of a column. Then the macro should return to the Tutor Registration worksheet and run the Clear_Form macro, which deletes the data in the range C4:C8.
Luis wants to assign the Add_Tutor macro to a new button to make it easy to run the macro. Create the button as follows:
- Insert a Button (Form Control) button to the right of the Clear Form button in cell C10.
- Change the height to 3″ and the width to 1.8″.
- Align the top and bottom of the Add Tutor button with the top and bottom of the Clear Form button.
- Edit the text to display Add Tutor on the button.
- Format the button control to use Calibri 11 point text if necessary.
- Assign the Add_Tutor macro to the new button.
- First insert the tutor registration data shown in Table 1. Then use the Add Tutor button to run the Add_Tutor macro, and then verify that it added a record on the Tutor Records
Table 1: Tutor Registration Data
|Tutor Name||Alex Santos|
|Tutoring Start Date||3/22/21|
Your workbook should look like the Final Figures on the following pages. Save your changes, close the workbook, and then exit Excel. Follow the directions on the SAM website to submit your completed project.
Final Figure 1: Tutor Summary Worksheet
Final Figure 2: Tutor Records Worksheet
Final Figure 3: Tutor Registration Worksheet