I am using excel 2010.
I have a sheet named ‘LOG’ in which there is a log of all the employee like this:

Now I have another sheet named sheet1.
What I would like is a macro that should prompt for employee id and month, then display all the log of that employee for that particular month.
I have tried a lot of things but couldn’t do it.
The following code will list the results in the column specified by the
RESULTS_COLUMNconstant value, just add the following code to your worksheet. You’ll also need 3 named ranges –EmployeeCode,StartDateandEndDate– to input your criteria, though you could always prompt for these another way: