How do I unprotect multiple sheets simultaneously?

G

Guest

I have a worksheet with 12 tabs. The sheets in each tab are protected by the
same password.

I have tried selecting all the tabs (similar to making changes on all sheets
in tabs) and tried to unprotect all the sheets simultaneously - be have been
unsuccessful.

I have to do this for many files, hence a quicker/more efficient way is
desireable.
 
G

Guest

Write a macro that will repeat the unprotect. Assign the macro to a key so
all you need do is press a key for each sheet.
 
G

Guest

Run a little macro such as:

Sub UnProtectAll()
Dim mySheet As Worksheet
For Each mySheet In Worksheets
mySheet.Unprotect
Next mySheet
End Sub
 
G

Gord Dibben

Sub UnprotectAllSheets()
Application.ScreenUpdating = False
Dim n As Single
For n = 1 To Sheets.Count
Sheets(n).Unprotect Password:="password" 'change to your password
Next n
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top