Sheet protection - passwords

ElvisSteel

Board Regular
Joined
Mar 23, 2009
Messages
122
Hi
I have the following macro...
Sub ProtectSheets()
Sheets("Outlook").Protect EnableSelection = xlNoSelection
Sheets("FY Utilisation Report").Protect EnableSelection = xlNoSelection
Sheets("Resource Check").Protect EnableSelection = xlNoRestrictions
Sheets("Project").Protect
Sheets("Reports 1").Protect EnableSelection = xlNoSelection
Sheets("Reports 2").Protect EnableSelection = xlNoSelection
Sheets("Tables").Protect
Sheets("Input").Protect
End Sub

When I run this, all of these are protected, but when I try to unprotect them (using the ribbon button) all of the sheets where I have specified xlNoSelection now require a password!
I don't know what the password is, so I am basically stuck.
Any ideas as to....
1. Why this is happening?
2. What the password may be?

Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,721
Messages
6,174,097
Members
452,542
Latest member
Bricklin

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