I can protect and unprotect sheet using VBA but I can't unprotect using the normal way of excel and I am providing the same password. any help please? below are the codes
Sheets("sheet1").Select
ActiveSheet.Unprotect Password = "protect20"
Sheets("sheet1").Select
ActiveSheet.protect Password="protect20", DrawingObjects:=True, Contents:=True, Scenarios:=True
Sheets("sheet1").Select
ActiveSheet.Unprotect Password = "protect20"
Sheets("sheet1").Select
ActiveSheet.protect Password="protect20", DrawingObjects:=True, Contents:=True, Scenarios:=True