Code:
Private Sub Workbook_V1_Open()
Dim Wks As Worksheet
For Each Wks In ThisWorkbook.Worksheets(1)
Wks.Protect Password:="Engineer", UserInterFaceOnly:=True
Next
End Sub
Code:
Private Sub protect_sheet()
ActiveSheet.Protect Password:="Engineer", Drawing Objects:=True, Contents:=True, Scenarios:=True
End Sub
Code:
Private Sub unprotect_sheet()
ActiveSheet.Unprotect Password:="Engineer"
End Sub
im trying to protect sheet getting error:438 object doesn't matched
can any one help me with this