I have a workbook that has a copy macro in it. At the end of the macro, it protects all of the worksheets. But I need to have one worksheet remain unprotected. I have seen several options on this site, but I keep getting a run-time error 424. Here is the code that I have that works:
' protect worksheet
For Each sht In NewBook.Worksheets
sht.Protect Password:="secret"
Next
MsgBox "Copy Complete", vbOKOnly, "Copy Complete"
End Sub
I have tried using case select (my worksheet name is called "instructions" but same issue. Any help would be appreciated.
Thanks.
Bookmarks