SlideShare a Scribd company logo
1 of 3
Exp22_excel_ch12_hoe – invoice 1.0 | Computer Science homework help
Exp22_Excel_Ch12_HOE – Invoice 1.0Exp22 Excel Ch12 HOE Invoice 1.0Excel Chapter 12
Hands-On Exercise – Invoice Project Description:Recently, you took a position as the senior
account manager at Wilhelmina’s Total Lawn Care (WTLC), a lawn care company located in
Leland, Michigan. WTLC specializes in full service lawn care ranging from landscaping to
weekly maintenance. The previous manager used a paper-based system to prepare expense
reports, invoices, and payroll statements. However, this was a time-consuming process and
required manual recalculation when any values changed. You want to start automating
tasks using your extensive experience with Excel. You decide to start with the client invoice
report form. Because each of the company’s billing representatives utilizes the same
procedures, you will adapt an Excel template to use as a model for creating invoices. The
template needs to be generic enough to accommodate a range of options, but it also needs to
maintain a standard design to facilitate easy data entry. You will download an existing Excel
invoice template, customize the template for your business needs, and inspect the
worksheet for accessibility. Finally, you will create macros to perform a series of tasks, such
as clearing the values to reset the form and finalizing the invoice for management
approval. Start Excel. Download and open the file named
Exp22_Excel_Ch12_HOE_Invoice.xlsx. Grader has automatically added your last name to the
beginning of the filename. The Invoice template provides the basic design you need, but
you want to add your company’s contact information. You also want to delete the sample
data and remove the developer’s data validation comments. Make the following edits to
the template: Type Wilhelmina’s Total Lawn Care in cell B2 Type Every Lawn Needs
TLC in cell B3 Type Lot Area in cell C5 Type 1234 Caesar Parkway, Leland, MI 49654 in
cell B27 Apply Italics format to cell B3 Delete the values in the range D6:D10 Continue
editing the template by making the following structural changes. Insert a row before row
1 Insert a column before column A Set the column width of column A to 2 Add an outside
border to the range B2:F29 Clear all data validation that was included in the original
template Rename the worksheet Customer Invoice Prior to distributing your template, you
want to remove all personal information. You will use the Document Inspector to complete
the task. Use the Document Inspector to remove all Document Properties and
Personal Information. Mac users, on the Excel menu, click Preferences and then click the
Security icon. In the Security dialog box, click Remove personal information from this file
on save. The invoice will be sent electronically, and you want to make sure the Invoice
template does not contain content that might cause difficulties for users. To ensure
this document is compliant with accessibility standards, you will check accessibility. Use
the Accessibility Checker to check the template for issues. Once completed, make the
following changes to improve the template’s accessibility. Unmerge the following ranges
C27:D27, C28:D28, C4:C5, C2:F2, D12:E12, D13:E13, D6:E6. Set the text in cell C2 to left
alignment. Type Due on: in cell D13. You know that some of remote staff members are
using Excel 2010. You want to make sure the workbook does not have critical features that
might not display when opened with the older version of the software. Use the
Compatibility Checker to check the template for compatibility with Excel 2010-2016
versions. Mac users, on the Tools menu (or the Review tab), click Check Accessibility. You
want to add notes to the template to provide instruction to your staff. To do this you will
annotate the worksheet using comments. Clear the contents of cell C13. Then add the
following comments to the template. Cell C13 – Enter Business or Residential Cell E3 –
Insert Date Cell E6 – Use the custom area function to calculate lot area Cell E13 – Business
jobs are due in 30 days, all others due upon receipt After inserting comments, you decide
you will automate the insertion of the date in a later step. Therefore, you will remove the
comment from cell E3. You also want to edit the comment in cell E13 to make a small
grammatical change. Delete the comment in cell E3. Edit the comment in cell E13 to reflect
the following changes Business jobs are due in 30 days. All others due upon receipt For
your last step, you want to hide the comments to reduce screen clutter. Once the comments
are hidden, the comment indicators will still be visible. Hide all comments in the
template. You do not want to assume the level of Excel expertise throughout your
company; therefore, you want to craft a macro that will automate as much as possible. The
macro you will create automatically clears existing values in the workbook. Although
the template is empty to start, users might open the template, save a workbook, and then
want to use that workbook to prepare more invoices. Therefore, you want the macro to
clear cells even though the original template has no values. Once completed, save the
workbook as a macro enabled template. Record a macro named ClearInvoice. Add the
description: This macro clears existing values in the current invoice. when creating the
macro. When run, the macro should do the following: Delete the values in the cells E6, C13,
E13, and the ranges C7:C11 and C15:E25. After deleting the values, the macro should enter
the following default values. C7 = Name C8 = Company Name C9 = Street Address C10
= City, ST Zip Code C11 = Phone You want to make sure the ClearInvoice macro does
what you want it to do. You will add some sample data and run the macro. Enter the
following sample values, then run the ClearInvoice macro. C8 = John Doe Inc. C9 =
123 Sample Street C10 = Leland, MI 49654 C11 = (231) 555-5555 Your sales reps may
not be Excel experts and not know how to run a macro. To make it easier to clear
values from the form, you want to assign the ClearInvoice macro to a button. The users
can click the button to clear the form to use it for another customer. You will also add a
button to be utilized later in the project. Insert a Button (Form Control) in the range H2:J2.
Edit the button label to display the text Clear Form and assign the ClearInvoice macro. Next
insert a Button (Form Control) spanning the range H4:J5. Edit the button text to display
the text Insert Date. Type Customer Name in cell C7 and then click the Clear Form button
to run the macro. In order to use VBA to automatically insert and format the date, you will
first create a new module. You will then use the range object to insert the current date and
adjust the font property to bold the current date. Create a new module in the VBA Editor
named DateStamp. Enter the following code to create the desired sub
procedure. Sub DateStamp () ‘Unprotect worksheet for
editingWorksheets(“Customer Invoice”).Unprotect Password:=”Expl0r!ng” ‘Insert current
date in cell E3Range(“E3”)=Date ‘Adds bold format to cell
E3Range(“E3”).Font.Bold=True ‘Protects worksheet using the password
Expl0r!ngWorksheets(“Customer Invoice”).Protect Password:=”Expl0r!ng” End Sub After
entering the code exit the VBA Editor and run the macro to test your work. After running
the sub procedure, you decide that the inserted date should be italic instead of bold. You
will make this change in the VBA Editor by changing the Italic property. You will also add
a statement to the ClearInvoice Macro to unprotect the worksheet when clearing its
data. Open the DateStamp module in the VBA Editor. Locate the code
Range(“E3”).Font.Bold=True and replace the word Bold with italic. Next open Module 1.
Press enter twice at the end of the first line (Ln1, Col9) and type the following
code. ‘Unprotect worksheet for editing.Worksheets(“Customer Invoice”).Unprotect
password:=”Expl0r!ng” After entering the code save and exit the VBA Editor. Next assign
the DateStamp macro to form control button 2. You decide to create a custom function to
enable users to manually calculate the area of a yard being serviced. Open the VBA Editor
and create a new module named CustomFunction then enter the following
code: FunctionArea(Length,Width) ‘This function will calculate the area of the lawn being
servicedArea = Length * Width End Function Save and exit the VBA Editor. Type
=area(20,45) in cell E6 to test your work. Insert a new worksheet named Code. Open the
VBA Editor, open the ClearInvoice module, and copy the code. Paste the code in the Code
worksheet starting in cell A1 then remove any rows containing blank cells.
When complete, the code block should appear continuous with no blank cells
between lines. Open the DateStamp module, and copy the code. Paste the code in the
Code worksheet starting in cell A31 then remove any rows containing blank cells. When
complete, the code block should appear continuous with no blank cells between
lines. Open the Function module, and copy the code. Paste the code in the Code worksheet
starting in cell A44 then remove any rows containing blank cells. When complete, the code
block should appear continuous with no blank cells between lines. Close
EXP22_Excel_Ch12_HOE_Invoice.xlsx. Be sure to save the copy as a .xlsx file, not a macro-
enabled workbook. Exit Excel. Submit the .xlsx file as directed.

More Related Content

Similar to invoice Computer Science homework help.docx

Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docxHw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
adampcarr67227
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docx
amrit47
 
Scoring documentation
Scoring documentationScoring documentation
Scoring documentation
Fatima Khalid
 
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docxGrader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
greg1eden90113
 
Instructions sc access_1a[1]
Instructions sc access_1a[1]Instructions sc access_1a[1]
Instructions sc access_1a[1]
gaaaaaaaasa
 

Similar to invoice Computer Science homework help.docx (16)

Access tips access and sql part 6 dynamic reports
Access tips  access and sql part 6  dynamic reportsAccess tips  access and sql part 6  dynamic reports
Access tips access and sql part 6 dynamic reports
 
Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012Budget entries import in Dynamics AX 2012
Budget entries import in Dynamics AX 2012
 
C# Tutorial MSM_Murach chapter-03-slides
C# Tutorial MSM_Murach chapter-03-slidesC# Tutorial MSM_Murach chapter-03-slides
C# Tutorial MSM_Murach chapter-03-slides
 
C# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesC# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slides
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
Gutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atlGutmacher practical-coding-examples-for-sourcers-sc18 atl
Gutmacher practical-coding-examples-for-sourcers-sc18 atl
 
Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docxHw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
Hw8Excel - Exercise 8 Mail Merge-2.docINFS 3250In Class Pro.docx
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docx
 
VBA Tips
VBA TipsVBA Tips
VBA Tips
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Scoring documentation
Scoring documentationScoring documentation
Scoring documentation
 
Excel 2 Update (completed solution)
Excel 2 Update (completed solution)Excel 2 Update (completed solution)
Excel 2 Update (completed solution)
 
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docxGrader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
Grader - InstructionsExcel 2019 ProjectExcel_7G_Loan_Flowers_Staf.docx
 
How To Automate Part 3
How To Automate Part 3How To Automate Part 3
How To Automate Part 3
 
Useful macros and functions for excel
Useful macros and functions for excelUseful macros and functions for excel
Useful macros and functions for excel
 
Instructions sc access_1a[1]
Instructions sc access_1a[1]Instructions sc access_1a[1]
Instructions sc access_1a[1]
 

More from studywriters

inventor who is currently living in Northeast Ohio and answer.docx
inventor who is currently living in Northeast Ohio and answer.docxinventor who is currently living in Northeast Ohio and answer.docx
inventor who is currently living in Northeast Ohio and answer.docx
studywriters
 
Health care organizations strive to create a culture of.docx
Health care organizations strive to create a culture of.docxHealth care organizations strive to create a culture of.docx
Health care organizations strive to create a culture of.docx
studywriters
 
Health care has become to depend on information technology.docx
Health care has become to depend on information technology.docxHealth care has become to depend on information technology.docx
Health care has become to depend on information technology.docx
studywriters
 
Health care facilities treat many types of For.docx
Health care facilities treat many types of For.docxHealth care facilities treat many types of For.docx
Health care facilities treat many types of For.docx
studywriters
 
he brain changes as we Explain the changes in.docx
he brain changes as we Explain the changes in.docxhe brain changes as we Explain the changes in.docx
he brain changes as we Explain the changes in.docx
studywriters
 
Hawksbill sea turtle Conservation Management.docx
Hawksbill sea turtle Conservation Management.docxHawksbill sea turtle Conservation Management.docx
Hawksbill sea turtle Conservation Management.docx
studywriters
 
Is social media more beneficial or more harmful to our.docx
Is social media more beneficial or more harmful to our.docxIs social media more beneficial or more harmful to our.docx
Is social media more beneficial or more harmful to our.docx
studywriters
 
Having more clarity about helps one become a better.docx
Having more clarity about helps one become a better.docxHaving more clarity about helps one become a better.docx
Having more clarity about helps one become a better.docx
studywriters
 
Is Price gouging criminal or is it the free market.docx
Is Price gouging criminal or is it the free market.docxIs Price gouging criminal or is it the free market.docx
Is Price gouging criminal or is it the free market.docx
studywriters
 

More from studywriters (20)

inventor who is currently living in Northeast Ohio and answer.docx
inventor who is currently living in Northeast Ohio and answer.docxinventor who is currently living in Northeast Ohio and answer.docx
inventor who is currently living in Northeast Ohio and answer.docx
 
Health care organizations strive to create a culture of.docx
Health care organizations strive to create a culture of.docxHealth care organizations strive to create a culture of.docx
Health care organizations strive to create a culture of.docx
 
Health care has become to depend on information technology.docx
Health care has become to depend on information technology.docxHealth care has become to depend on information technology.docx
Health care has become to depend on information technology.docx
 
Health care facilities treat many types of For.docx
Health care facilities treat many types of For.docxHealth care facilities treat many types of For.docx
Health care facilities treat many types of For.docx
 
Health Belief Model.docx
Health Belief Model.docxHealth Belief Model.docx
Health Belief Model.docx
 
Health assessment.docx
Health assessment.docxHealth assessment.docx
Health assessment.docx
 
Health and Professional Ethics.docx
Health and Professional Ethics.docxHealth and Professional Ethics.docx
Health and Professional Ethics.docx
 
Health and Advocacy.docx
Health and Advocacy.docxHealth and Advocacy.docx
Health and Advocacy.docx
 
he brain changes as we Explain the changes in.docx
he brain changes as we Explain the changes in.docxhe brain changes as we Explain the changes in.docx
he brain changes as we Explain the changes in.docx
 
HCR 210 Week 1 DQs.docx
HCR 210 Week 1 DQs.docxHCR 210 Week 1 DQs.docx
HCR 210 Week 1 DQs.docx
 
HCS 131 Course Presentation.docx
HCS 131 Course Presentation.docxHCS 131 Course Presentation.docx
HCS 131 Course Presentation.docx
 
Hawksbill sea turtle Conservation Management.docx
Hawksbill sea turtle Conservation Management.docxHawksbill sea turtle Conservation Management.docx
Hawksbill sea turtle Conservation Management.docx
 
Is social media more beneficial or more harmful to our.docx
Is social media more beneficial or more harmful to our.docxIs social media more beneficial or more harmful to our.docx
Is social media more beneficial or more harmful to our.docx
 
Is relevant to Teslas.docx
Is relevant to Teslas.docxIs relevant to Teslas.docx
Is relevant to Teslas.docx
 
Having more clarity about helps one become a better.docx
Having more clarity about helps one become a better.docxHaving more clarity about helps one become a better.docx
Having more clarity about helps one become a better.docx
 
Is prostitution morally Should we legalize.docx
Is prostitution morally Should we legalize.docxIs prostitution morally Should we legalize.docx
Is prostitution morally Should we legalize.docx
 
Is Moral Anger.docx
Is Moral Anger.docxIs Moral Anger.docx
Is Moral Anger.docx
 
Is Price gouging criminal or is it the free market.docx
Is Price gouging criminal or is it the free market.docxIs Price gouging criminal or is it the free market.docx
Is Price gouging criminal or is it the free market.docx
 
is never total and never The Social.docx
is never total and never The Social.docxis never total and never The Social.docx
is never total and never The Social.docx
 
is medicine and doctors need to prescribe.docx
is medicine and doctors need to prescribe.docxis medicine and doctors need to prescribe.docx
is medicine and doctors need to prescribe.docx
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 

invoice Computer Science homework help.docx

  • 1. Exp22_excel_ch12_hoe – invoice 1.0 | Computer Science homework help Exp22_Excel_Ch12_HOE – Invoice 1.0Exp22 Excel Ch12 HOE Invoice 1.0Excel Chapter 12 Hands-On Exercise – Invoice Project Description:Recently, you took a position as the senior account manager at Wilhelmina’s Total Lawn Care (WTLC), a lawn care company located in Leland, Michigan. WTLC specializes in full service lawn care ranging from landscaping to weekly maintenance. The previous manager used a paper-based system to prepare expense reports, invoices, and payroll statements. However, this was a time-consuming process and required manual recalculation when any values changed. You want to start automating tasks using your extensive experience with Excel. You decide to start with the client invoice report form. Because each of the company’s billing representatives utilizes the same procedures, you will adapt an Excel template to use as a model for creating invoices. The template needs to be generic enough to accommodate a range of options, but it also needs to maintain a standard design to facilitate easy data entry. You will download an existing Excel invoice template, customize the template for your business needs, and inspect the worksheet for accessibility. Finally, you will create macros to perform a series of tasks, such as clearing the values to reset the form and finalizing the invoice for management approval. Start Excel. Download and open the file named Exp22_Excel_Ch12_HOE_Invoice.xlsx. Grader has automatically added your last name to the beginning of the filename. The Invoice template provides the basic design you need, but you want to add your company’s contact information. You also want to delete the sample data and remove the developer’s data validation comments. Make the following edits to the template: Type Wilhelmina’s Total Lawn Care in cell B2 Type Every Lawn Needs TLC in cell B3 Type Lot Area in cell C5 Type 1234 Caesar Parkway, Leland, MI 49654 in cell B27 Apply Italics format to cell B3 Delete the values in the range D6:D10 Continue editing the template by making the following structural changes. Insert a row before row 1 Insert a column before column A Set the column width of column A to 2 Add an outside border to the range B2:F29 Clear all data validation that was included in the original template Rename the worksheet Customer Invoice Prior to distributing your template, you want to remove all personal information. You will use the Document Inspector to complete the task. Use the Document Inspector to remove all Document Properties and Personal Information. Mac users, on the Excel menu, click Preferences and then click the Security icon. In the Security dialog box, click Remove personal information from this file on save. The invoice will be sent electronically, and you want to make sure the Invoice template does not contain content that might cause difficulties for users. To ensure
  • 2. this document is compliant with accessibility standards, you will check accessibility. Use the Accessibility Checker to check the template for issues. Once completed, make the following changes to improve the template’s accessibility. Unmerge the following ranges C27:D27, C28:D28, C4:C5, C2:F2, D12:E12, D13:E13, D6:E6. Set the text in cell C2 to left alignment. Type Due on: in cell D13. You know that some of remote staff members are using Excel 2010. You want to make sure the workbook does not have critical features that might not display when opened with the older version of the software. Use the Compatibility Checker to check the template for compatibility with Excel 2010-2016 versions. Mac users, on the Tools menu (or the Review tab), click Check Accessibility. You want to add notes to the template to provide instruction to your staff. To do this you will annotate the worksheet using comments. Clear the contents of cell C13. Then add the following comments to the template. Cell C13 – Enter Business or Residential Cell E3 – Insert Date Cell E6 – Use the custom area function to calculate lot area Cell E13 – Business jobs are due in 30 days, all others due upon receipt After inserting comments, you decide you will automate the insertion of the date in a later step. Therefore, you will remove the comment from cell E3. You also want to edit the comment in cell E13 to make a small grammatical change. Delete the comment in cell E3. Edit the comment in cell E13 to reflect the following changes Business jobs are due in 30 days. All others due upon receipt For your last step, you want to hide the comments to reduce screen clutter. Once the comments are hidden, the comment indicators will still be visible. Hide all comments in the template. You do not want to assume the level of Excel expertise throughout your company; therefore, you want to craft a macro that will automate as much as possible. The macro you will create automatically clears existing values in the workbook. Although the template is empty to start, users might open the template, save a workbook, and then want to use that workbook to prepare more invoices. Therefore, you want the macro to clear cells even though the original template has no values. Once completed, save the workbook as a macro enabled template. Record a macro named ClearInvoice. Add the description: This macro clears existing values in the current invoice. when creating the macro. When run, the macro should do the following: Delete the values in the cells E6, C13, E13, and the ranges C7:C11 and C15:E25. After deleting the values, the macro should enter the following default values. C7 = Name C8 = Company Name C9 = Street Address C10 = City, ST Zip Code C11 = Phone You want to make sure the ClearInvoice macro does what you want it to do. You will add some sample data and run the macro. Enter the following sample values, then run the ClearInvoice macro. C8 = John Doe Inc. C9 = 123 Sample Street C10 = Leland, MI 49654 C11 = (231) 555-5555 Your sales reps may not be Excel experts and not know how to run a macro. To make it easier to clear values from the form, you want to assign the ClearInvoice macro to a button. The users can click the button to clear the form to use it for another customer. You will also add a button to be utilized later in the project. Insert a Button (Form Control) in the range H2:J2. Edit the button label to display the text Clear Form and assign the ClearInvoice macro. Next insert a Button (Form Control) spanning the range H4:J5. Edit the button text to display the text Insert Date. Type Customer Name in cell C7 and then click the Clear Form button to run the macro. In order to use VBA to automatically insert and format the date, you will
  • 3. first create a new module. You will then use the range object to insert the current date and adjust the font property to bold the current date. Create a new module in the VBA Editor named DateStamp. Enter the following code to create the desired sub procedure. Sub DateStamp () ‘Unprotect worksheet for editingWorksheets(“Customer Invoice”).Unprotect Password:=”Expl0r!ng” ‘Insert current date in cell E3Range(“E3”)=Date ‘Adds bold format to cell E3Range(“E3”).Font.Bold=True ‘Protects worksheet using the password Expl0r!ngWorksheets(“Customer Invoice”).Protect Password:=”Expl0r!ng” End Sub After entering the code exit the VBA Editor and run the macro to test your work. After running the sub procedure, you decide that the inserted date should be italic instead of bold. You will make this change in the VBA Editor by changing the Italic property. You will also add a statement to the ClearInvoice Macro to unprotect the worksheet when clearing its data. Open the DateStamp module in the VBA Editor. Locate the code Range(“E3”).Font.Bold=True and replace the word Bold with italic. Next open Module 1. Press enter twice at the end of the first line (Ln1, Col9) and type the following code. ‘Unprotect worksheet for editing.Worksheets(“Customer Invoice”).Unprotect password:=”Expl0r!ng” After entering the code save and exit the VBA Editor. Next assign the DateStamp macro to form control button 2. You decide to create a custom function to enable users to manually calculate the area of a yard being serviced. Open the VBA Editor and create a new module named CustomFunction then enter the following code: FunctionArea(Length,Width) ‘This function will calculate the area of the lawn being servicedArea = Length * Width End Function Save and exit the VBA Editor. Type =area(20,45) in cell E6 to test your work. Insert a new worksheet named Code. Open the VBA Editor, open the ClearInvoice module, and copy the code. Paste the code in the Code worksheet starting in cell A1 then remove any rows containing blank cells. When complete, the code block should appear continuous with no blank cells between lines. Open the DateStamp module, and copy the code. Paste the code in the Code worksheet starting in cell A31 then remove any rows containing blank cells. When complete, the code block should appear continuous with no blank cells between lines. Open the Function module, and copy the code. Paste the code in the Code worksheet starting in cell A44 then remove any rows containing blank cells. When complete, the code block should appear continuous with no blank cells between lines. Close EXP22_Excel_Ch12_HOE_Invoice.xlsx. Be sure to save the copy as a .xlsx file, not a macro- enabled workbook. Exit Excel. Submit the .xlsx file as directed.