Question: Record a macro which will ask the user for the department of an employee (through inputbox function) and then calculate percentage of employees from that

Record a macro which will ask the user for the department of an employee (through inputbox function) and then calculate percentage of employees from that department who are earning above $45,000 among all employees in the database? Set up criteria on Queries worksheet, and answer should be on Queries sheet in the cell indicated. Create macro button on Queries sheet. Macro should be self-sufficient including first clearing the criteria range. Create macro button Query worksheet.

Queries Worksheet:

ABсDEFH IKLMN 0 P 0 RS TUV wCreate Macro buttons Tor Question I and Question 2 Below in Gray Area. Label the mac

Database Worksheet:ABDEFHKMEmp ID1011Birth Date11/21/64122949/21/958/9/87Years inService211519Age5636553353DivisionCoАBСDEFGH-JкLM25155816571674167516751676167717231724MarketingAccountingAccountingAccountingMarketin  

A D E F H K L M P Q R S T U V W I. Create Macro buttons for Question 1 and Question Z Below in Gray Area. Labei the macro button as Questoni ana Questionz. 2 Macro Questions Criteria 4 Q1 Put your answer in this cel 7 8 Years In n 9 Last Name New Salary 1 Emp ID First Name Department Division Salary Hire Date Birth Date Age Service New Salary 2 Birth Month 10 11 12 13 14 15 16 17 18 Q2 Put your answer in this cell 19 20 Years In 21 Emp ID Last Name First Name Department Salary Hire Date Birth Date Age New Salary 1 Division Service New Salary 2 Birth Month 22 23 24 25 26 27 28 Create Macro button for each question in "Database" worksheet. 29

Step by Step Solution

3.36 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Option Explicit Sub viscell Dim VisibleCells As Range ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!