Thread
:
Can I protect all excel tabs in a file with one password entry?
View Single Post
#
7
June 12th, 2008, 02:01 PM posted to microsoft.public.excel.misc
Jen@ccbcc[_2_]
external usenet poster
Posts: 2
Can I protect all excel tabs in a file with one password entry
If I simply replace the protect with unprotect, I receive the following error
message:
Compile error: Expected function or variable
Also...is there a way to perform these macros without requiring a password?
"Dave Peterson" wrote:
Just use
ws.unprotect password:="123"
to unprotect the sheets. They all share the same password, right?
Jen@ccbcc wrote:
Does anyone know how to do the reverse (i.e. unprotect all sheets at once)?
"Paul B" wrote:
Indiana, you can use a macro like this,
Sub protect_sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect password:="123"
Next ws
End Sub
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
"Indiana born" Indiana
wrote in message
...
I have spreadsheets with multiple tabs - I presently have to password
protect
each tab separately. I'm looking for a way to protect all tabs with one
password entry. i am not share the files, but others do view them and I
don't want changes made.
--
Dave Peterson
Jen@ccbcc[_2_]
View Public Profile
View message headers
Find all posts by Jen@ccbcc[_2_]
Find all threads started by Jen@ccbcc[_2_]