Generate Report using Macro

Topazpower

Board Regular
Joined
Mar 2, 2009
Messages
63
I have a workbook consisting of employee name, Ids and their respective due dates for salary. The due dates falls every month which varies from employee to employee. Is it possible to generate a report and paste it in a new excel sheet naming it automatically as REPORT Month and date wise.

The macro should go through the entire sheet for Due dates and upon clicking a button I should be able to generate the reports.


I have attached the sheet for your reference.


Thanks in advance

Jane







Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1S.NoRef NoEmployee IDEmployee NameDaysOTBasicDOJAmount Payable1st Due2nd Due3rd Due4th5th6th7th8th9th10th11th12th13th14th15th16th17th18th19th20th21st22nd23rd24th
21109MDB100001John30050012-Mar-0950011-Apr-0911-May-0910-Jun-0910-Jul-0909-Aug-0908-Sep-0908-Oct-0907-Nov-0907-Dec-0906-Jan-1005-Feb-1007-Mar-1006-Apr-1006-May-1005-Jun-1005-Jul-1004-Aug-1003-Sep-1003-Oct-1002-Nov-1002-Dec-1001-Jan-1131-Jan-1102-Mar-11
32110MDB100002Rivera30050014-Mar-0950013-Apr-0913-May-0912-Jun-0912-Jul-0911-Aug-0910-Sep-0910-Oct-0909-Nov-0909-Dec-0908-Jan-1007-Feb-1009-Mar-1008-Apr-1008-May-1007-Jun-1007-Jul-1006-Aug-1005-Sep-1005-Oct-1004-Nov-1004-Dec-1003-Jan-1102-Feb-1104-Mar-11
43111MDB100003Mary30050014-Mar-0950013-Apr-0913-May-0912-Jun-0912-Jul-0911-Aug-0910-Sep-0910-Oct-0909-Nov-0909-Dec-0908-Jan-1007-Feb-1009-Mar-1008-Apr-1008-May-1007-Jun-1007-Jul-1006-Aug-1005-Sep-1005-Oct-1004-Nov-1004-Dec-1003-Jan-1102-Feb-1104-Mar-11
54112MDB100004Sweta30050014-Mar-0950013-Apr-0913-May-0912-Jun-0912-Jul-0911-Aug-0910-Sep-0910-Oct-0909-Nov-0909-Dec-0908-Jan-1007-Feb-1009-Mar-1008-Apr-1008-May-1007-Jun-1007-Jul-1006-Aug-1005-Sep-1005-Oct-1004-Nov-1004-Dec-1003-Jan-1102-Feb-1104-Mar-11
65113MDB100005Brian30050017-Mar-0950016-Apr-0916-May-0915-Jun-0915-Jul-0914-Aug-0913-Sep-0913-Oct-0912-Nov-0912-Dec-0911-Jan-1010-Feb-1012-Mar-1011-Apr-1011-May-1010-Jun-1010-Jul-1009-Aug-1008-Sep-1008-Oct-1007-Nov-1007-Dec-1006-Jan-1105-Feb-1107-Mar-11
76114MDB100006Fina30050017-Mar-0950016-Apr-0916-May-0915-Jun-0915-Jul-0914-Aug-0913-Sep-0913-Oct-0912-Nov-0912-Dec-0911-Jan-1010-Feb-1012-Mar-1011-Apr-1011-May-1010-Jun-1010-Jul-1009-Aug-1008-Sep-1008-Oct-1007-Nov-1007-Dec-1006-Jan-1105-Feb-1107-Mar-11
87
98
109
Sheet1
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Jane,

I would need you to clarify the search criteria.

If you were just click the button with your example data say on 1st April, from your example can you show me what results you would expect.

Regards

ColinKJ
 
Upvote 0
I actually require a report for each employee about the due date for salary based on the search from cell J2 to AG2. Since the salary date vary from one person to other person I require that in advance before 5 days of the due date mentioned .

The Report should have the Employee Id, name and the date of salary to be paid along with the amount payable.

Thanks
Jane.
 
Upvote 0
Hi Jane,

I've put together a WB which you could take a look at, send me a private message with an email address, and I'll send it over.

ColinKJ
 
Upvote 0
Hi Jane,

I have a WB for you to take a look at. Do you still want it, if so, send me a private message with an email address, and I'll send it over.

If you don't want it now can you let me know.

Regards

Colin
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top