Problem w/query & preserving sort order

JGupta

New Member
Joined
Apr 7, 2011
Messages
4
I'm creating a spreadsheet to be used for calling in employees for after hours and weekend work. I have a master spreadsheet which lists all employees, along with their work center, job skill & contact information.

The call-in log is located in another workbook. There is a worksheet for each work center (geographic location) & I'm using MS query to pull the employee information from the master spreadsheet. I have added 2 additional columns to the call-in worksheet: accept/decline (when the employee is called, whether they take the work or not) and a date/time stamp. The date/time stamp auto populates when the accept/decline field is changed (using Worksheet_Change event). The date/time column is then sorted so that the person who was just called moves to the bottom of the call list.

This works great so far, until the query is refreshed (when a new person is added to the master list). The problem is the employee information refreshes (re-sorts in the master list order), but the accept/decline columns do not, so the call-in order is all messed up.

I need to be able to refresh the employee list (when new people are added or phone numbers change), but need to preserve the previous call-in order (for compliance to union contract). Any help would be appreciated.

Thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,644
Messages
6,125,993
Members
449,279
Latest member
Faraz5023

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