excel protection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to protect all of the worksheets at once. When I use the
workbook protection it doesn't do what I need.

It seems the only way I can protect specific cells is to use the sheet
protection and this means one sheet at a time.

Is there anyway to get all of the sheets protected at one time??
 
Jeannine said:
Is there a way to protect all of the worksheets at once. When I us
the
workbook protection it doesn't do what I need.

It seems the only way I can protect specific cells is to use the sheet
protection and this means one sheet at a time.

Is there anyway to get all of the sheets protected at one time??

Try using this macro. You can stick it in your Personal.xls, then jus
run it whenever you want.

Public Sub ProtectAllSheets()
Dim aWorksheet As Worksheet

For Each aWorksheet In Worksheets
aWorksheet.Protect "YourPassword"
Next aWorksheet

End Sub

If you want, you can add code to prompt you for the password. You ca
also set it up so that you can choose when running it whether you wan
to protect or unprotect all sheets.

Scot
 

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

Similar Threads

Excel Protection 2
Excel Move or Copy Stopped Working? 0
Protect and Edit Object 1
Protecting a workbook 5
vba solution for protection 3
Protection 1
Change cell color in protected sheet 1
hide columns on a protected sheet 2

Back
Top