Private Sub Workbook_Open()If TODAY() >= "04/11/2016" ThenSheet2.Protect Password = "abcd"MsgBox "sheet2.protected "End IfEnd Sub
Private Sub Workbook_Open() If Date >= "11/04/2016" Then Sheet2.Protect Password = "abcd" MsgBox "sheet2.protected " End IfEnd Sub
کامنت