May I know how can I protect/unprotect my worksheets with password
using VBA macro?
Below is the example of protecting/unprotecting worksheet code without
the password:-
Protect:
ActiveWorkbook.Sheets("Current Database").Protect DrawingObjects:=True,
Contents:=True, Scenarios:=True
Unprotect:
ActiveWorkbook.Sheets("Current Database").Unprotect