Changing file attribute in an Excel file that is on a network drive

Shanthan

New Member
Joined
Feb 24, 2013
Messages
47
We are planning to have our shift schedule at work on a network drive on an Excel file. It will be protected so that it cannot be changed by anyone, except the manager. My original idea was to have the Excel file opened on the manager's computer all the time, so that when the employees open it on any of the other computers, it'll open as read-only and the manager could make changes at any time. Employees just need to close and re-open the file to see the changes.

Problem: If one of the supervisors need to edit the schedule from their office, they won't be able since the file will always remain open in the manager's office.

Question: Is there a way to always open the file as read-only, but when the manager enters a username and password via userform after opening the file, it'll not only unprotect the file, but also change the attribute to write? Or is there any other way to do solve this problem?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Just set a password to edit it. Anyone can open it to read only. To do this when saving it type the password into "password to modify" instead of "password to open".
 
Upvote 0
Is there way feature in Excel that allows me to set a password to edit the file or do I have to do this via VBA?
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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