Sharing Workbook / Worksheet Protection Issues

Potts192

New Member
Joined
Apr 2, 2012
Messages
3
Hi,

I have a question and after searching high and low I cannot find the answer.

I have recently completed a project based around spreadsheet in Excel to restrict the changes made by users based on the password they enter. This is to allow different groups of users to access the spreadsheet in different ways, as per their role in updating various sections.

In order to do this I have used the "Protect Sheet" option along with some VBA to highlight the various areas to lock & unlock for each set of users. Each password triggers a different VBA routine to change the settings of the relevent cells for that user to update.

This works fine when used exclusively & I was hoping to be able to share the workbook but some key protection macros don't work as expected shared mode. I get an error whenever the VBA code attempts to "Protect" and "Unprotect" the various Worksheets.

So I was wondering if it is at all possible to set a workbook up in such a way that it can never be shared by a user?

Or is it possible there is a way to "Protect" or "Unprotect" spreadsheets when they are in shared mode?

Bit of a long shot I know but any help would be greatly appreciated :biggrin:
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,206,711
Messages
6,074,478
Members
446,071
Latest member
gaborfreeman

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