sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
My workbook just started throwing a random unprotect error when opening. I isolated the line of coding and tried running it by itself in a test sub and it failed then too.
The sheet is called "Developer"
Cells B15:E15 (merged) contain the password.
I have another sub that references this same password and works flawlessly.
Error is a 1004 - Application or Object defined error.
The sheet is called "Developer"
Cells B15:E15 (merged) contain the password.
I have another sub that references this same password and works flawlessly.
Error is a 1004 - Application or Object defined error.
Code:
Sub test()
Sheets("Developer").Unprotect Password:=Worksheets("Developer").Range("B15:E15").Value, UserInterfaceOnly:=True
End Sub