Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that protects all the worksheets in a workbook, but not the
chart sheets. I need for it to protect them as well. Can anyone help? Here is the code I use to protect the worksheets and workbook: Application.ScreenUpdating = False Dim password As String password = Application.InputBox(prompt:="What Password Do You Want To Use?", Type:=2) If password = "" Then 'do nothing Else For Each ws In Worksheets ws.Activate ActiveSheet.Protect (password) Next ws End If Application.ThisWorkbook.Protect (password), structu=True Worksheets("Global & Monthly Inputs").Activate Range("A1").Select Application.ScreenUpdating = True Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
protect sheet | Excel Programming | |||
Protect Workbook Vs Protect Sheet | New Users to Excel | |||
Can I protect columns w/in a "List" using Protect Sheet? | Excel Discussion (Misc queries) | |||
Lock and protect cells without protect the sheet | Excel Programming | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming |