Allow cell editing for specific users

Rocket123

New Member
Joined
May 24, 2016
Messages
17
Hello,

I have a worksheet that needs approvals from certain individuals like CFO, DP's, etc.

I found a way to use Data Validation to only allow certain individuals to edit a cell based on the Approver (Windows User name) and Title.
On a hidden worksheet I have a table with two columns, Approvers & Title. For this example I only list 2 users.
Approver Title
Bob CFO
Fred DP

I have a macro that inserts the Window Users name in a cell.
If Bob opens the file on his computer, Bob's user name will do a lookup for his title. In this case Bob is the CFO and can only edit cell A1.
If Fred opens the file on his computer, Fred's user name will do a lookup for his title. In this case Fred is the DP and can only edit cell B1.
Data Validation formula for A1: AND(Approver=Window User, Title=CFO)
Data Validation formula for B1: AND(Approver=Window User, Title=DP)

I found with Data Validation, the CFO can input/delete data in A1 and cannot input data in B1 BUT he can delete data in B1.

How can I prevent Approvers from deleting data in other cells?

Is there a better way to do this?

Thank you for your help!!!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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