Kreang said:Hi all,
How can I code for unprotect and protect VBProject in my workbook by VB code? There is password also.
Thanks in advance,
Kreang
ActiveSheet.Unprotect Password:="mypassword"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="mypassword"