Complete the code to protect the workbook structure in Excel using VBA.
ThisWorkbook.Protect [1]:=True
Use Structure:=True to protect the workbook structure, preventing adding, deleting, or moving sheets.
Complete the VBA code to unprotect the workbook with a password.
ThisWorkbook.Unprotect Password:= [1]The password must be a string literal enclosed in double quotes in VBA.
Fix the error in the code to protect workbook windows and structure.
ThisWorkbook.Protect Structure:=True, [1]:=True
The correct property to protect workbook windows is Windows.
Fill both blanks to protect the workbook with a password and structure protection.
ThisWorkbook.Protect [1]:=True, [2]:="secure123"
Use Structure:=True to protect sheets and Password:="secure123" to set the password.
Fill all three blanks to protect the workbook with a password, unprotecting structure but protecting windows.
ThisWorkbook.Protect [1]:="letmein", [2]:=False, [3]:=True
Use Password to specify the password, Structure:=False to unprotect sheets, and Windows:=True to keep windows protected.