ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Locking cells only for certain users (https://www.excelbanter.com/excel-discussion-misc-queries/65376-locking-cells-only-certain-users.html)

[email protected]

Locking cells only for certain users
 
Is it possible to lock up certain cells in a spreadsheet to certain
users if the workbook is saves on a network? For example, Jim has
access to make changes to column D while Bill has access to make
changes to column G?


tony h

Locking cells only for certain users
 

you can use an event like the workbook.open to execute some code that
changes the protection on the cells dependant upon the user. The user
can be determined using the environ("username") function.


you also need to protect the VBA

hope this helps


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=501658



All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com