Hi all,
wasn't sure precisely which forum to post this in. I could divide it into two problems but it's the same Excel sheet so I'm hoping I can get some help in the one thread.
I'm using payroll data as part of the development of this costing model so becomes a little sensitive as to who can view and use what part of it. The model is to be used by various managers but those particular managers should only be able to see the costings for their own staff - no others. For me this is just a project so once I've developed it to the satisfaction of the various managers I'll move on - therefore the model has to be able to work and be "updateable" after I've left.
- My first issue was around bringing the payroll data into the model. I originally wondered about using a form for each manager but I think bringing the data into the workbook from the payroll system is far more comprehensive. I'm using MS Query (suggested by dflak on here) and I think it works quite well. I can extract the updated payroll data through the query and that means all the staff details can be imported rather than needing to be entered. Also, payroll data means any changes to an employees work conditions are automatically captured. I'm not really sure how to get the data into the Excel workbook - there are a couple of possible solutions which I haven't attempted as I think they'd be very clunky whereas I need this to be a smooth experience for the managers. It would be ideal if there is an easy way that I could run the query through an active x button in Excel or something similar.
If anyone knows if this is possible or how to do it some guidance and direction would be very much appreciated.
- The next stage is that, once the data is in the workbook, it can't be visible to the managers. I can obviously hide the sheet and password protect it which is fine. However, since I won't be here, what I need is to be able to have it set up so that each of the managers has a different PIN or password that they enter in the model which allows them to view costs only for certain staff. The only way I can think of to do this is to have a password set up and an IF query to test if the password is correct. If so then a macro which would take that password and use it to filter which staff members will be picked up and bought into the model.
Again, while this may work if there is a slicker way of doing it then that would be much appreciated.
Bookmarks