Protects the structure and windows of the active workbook with the password 0llsecurd:
Sub protect() ActiveWorkbook.Protect Password:="pass", Structure:=True, Windows:=True End Sub