"Newsgal" <Newsgal@discussions.microsoft.com> wrote in message
news:FB4ADCA0-F104-4135-A3AB-29DE05394507@microsoft.com...
>
> -- Is it possible to protect/unprotect all worksheets in a
> workbook at once
> instead of having to do each individually if the password is
> the same?
>
> News Gal
Dim wb As Workbook
Dim ws As Worksheet
Dim blnIsProtected As Boolean
Set wb = ActiveWorkbook
For Each ws In wb.Worksheets
ws.Unprotect "test"
Next ws
Set wb = Nothing
Set ws = Nothing
End Sub
--
Kevin Backmann
"Newsgal" wrote:
>
> -- Is it possible to protect/unprotect all worksheets in a workbook at once
> instead of having to do each individually if the password is the same?
>
> News Gal
"Newsgal" <Newsgal@discussions.microsoft.com> wrote in message news:FB4ADCA0-F104-4135-A3AB-29DE05394507@microsoft.com...
>
> -- Is it possible to protect/unprotect all worksheets in a workbook at once
> instead of having to do each individually if the password is the same?
>
> News Gal