sort and retrieve data with VBA

srikanthess

New Member
Joined
Apr 11, 2014
Messages
21
Hi All,
I am creating an attendance workbook, Each month will be on its own worksheet.

Emp.No ____ Name_____ Date_____Time In_____Time Out_____Overtime


When I press "Next" Button the entry will be Copied and Pasted on a separate "Roster" table and the entry field is ready for next employee detail. So the roster table is populated everyday.

Now what i am intending to do is,

1. As I enter "Emp.No", all previous attendance for the month of this specific employee should be fetched from "Roster" table and displayed as a table below Data entry row.
2. I want to use a command button which would sort "Roster" table by Employee number and date so that i can edit any wrong entries on a later date. This sorting will help the user to easily pick wrong entries.

I appreciate any help, and thank you all in advance.

srikanth.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,213,521
Messages
6,114,104
Members
448,548
Latest member
harryls

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