When you protect a workbook in Excel, which of the following is true?
Think about what workbook protection controls versus worksheet protection.
Protecting a workbook mainly controls structural changes like adding or deleting sheets. It does not block editing cells or opening the file.
Consider this VBA code run in Excel:
ActiveWorkbook.Protect Password:="mypassword", Structure:=True, Windows:=False
What does this code do?
Look at the parameters Structure and Windows carefully.
The code protects the workbook's structure (like adding or deleting sheets) with the password 'mypassword'. Windows protection is off, so window size can be changed.
You want to prevent users from adding or deleting sheets but allow editing cells. Which Excel feature should you use?
Think about what controls sheet management versus cell editing.
Protect Workbook with Structure option restricts adding, deleting, or renaming sheets but does not block cell editing.
You have a workbook with multiple sheets. You want users to freely edit cells but prevent them from moving, deleting, or renaming sheets. What is the best way to do this?
Think about which protection controls sheet management and which controls cell editing.
Protecting the workbook structure prevents moving or deleting sheets but does not block cell editing if sheets are unprotected.
What happens if you run this VBA code?
ActiveWorkbook.Protect Password:="", Structure:=True
Think about how Excel treats empty strings as passwords.
Using an empty string as password sets protection without a password, so anyone can unprotect easily.