I've been wrestling with the best way to do this for awhile. Requirements:
1) I have a single spreadsheet with existing data (one row per person) that needs to be updated regularly.
2) There are 4 different types of users: Group A, Group B, Group C, and Admin.
3) Column C in each row identifies if it is data for a Group A person, Group B, or Group C.
4) Group A people should only be able to update Group A data, Group B only Group B data, etc.
5) Only the Admin should be able to add/delete rows (i.e. add or delete people from groups).
6) Admin should be able to update any row.
I looked into using "Allow users to edit ranges", but the problem is the data is pretty dynamic (rows are added/deleted regularly), so it seemed I would be constantly redefining the ranges.
I also looked into "Protect Sheet" for the admin piece. The problem is even though I only select "Insert rows" and "Delete rows" from the "Protect Sheet" menu, it seems to lock down every cell where I can't input data.
A possible (although clunky IMO) solution would be to test for the contents of Column C for the respective row every time somebody tries to change a cell. Then, based on that, prompt for a password. For example, I'm trying to enter data on a Group A row. I would be prompted for a password, and would need to enter "Group A password" into the dialog box for that cell to be unlocked. I would think a more elegant solution would be to ask for a password when opening the spreadsheet. Based upon the password (4 options: Groups A-C & Admin), grant the appropriate level of access.
Any ideas on how to do this? I'm open to any solution.
Thanks for your time.
I have posted this on 2 other forums with no answer yet:
http://www.ozgrid.com/forum/showthread.php?t=157371
http://www.mrexcel.com/forum/showthread.php?t=573265
Last edited by jzeusj; 08-20-2011 at 10:55 PM. Reason: Edit for cross-post clarification
Solved by my friend at Mr. Excel.
If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
Last edited by JBeaucaire; 08-21-2011 at 04:02 AM. Reason: removed embarassing comment, my bad
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Right, i've knocked a sample up for you, the password for the sheet is password, the passwords for the groups are "GroupA", "GroupB", "GroupC" and "Admin", in the sample the password box is called on open, if you "x" out of the password box the file closes, using the passwords only allows the user to edit the particular rows that contain their group, everything is reset on exit and the workbook saved.
Last edited by Simon Lloyd; 08-21-2011 at 06:22 AM.
Not all forums are the same - seek and you shall find
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks