Home |
Search |
Today's Posts |
#21
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code. Maybe you can add a line just to double check: For Each ws In ThisWorkbook.Worksheets msgbox "Processing: " & ws.name ws.Unprotect Password:="123" Next ws That may give you a hint. SLD wrote: I copied the unprotect macroe Sub Unprotect_All_Sheets() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets ws.Unprotect Password:="123" Next ws End Sub and it is still giving me an error on the 4th line. the passwords are the same on both macroes. What am I doing wrong? -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I have a excel file and forgot the password | Excel Discussion (Misc queries) | |||
Excel file automatically opens | Excel Discussion (Misc queries) | |||
Remove or change password protected excel file | Excel Discussion (Misc queries) | |||
password protection of an MHTML Excel file | Excel Discussion (Misc queries) | |||
How Do I open an excel file without Excel Viewer support | Excel Discussion (Misc queries) |