Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Option Explicit Sub viscell Dim VisibleCells As Range ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Employment Law for Human Resource Practice

Authors: David J. Walsh

4th edition

1111972192, 978-1133710820, 1133710824, 978-1111972196

More Books

Students also viewed these Operating System questions