0
0
Excelspreadsheet~20 mins

Workbook protection in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Workbook Protection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What happens when you protect a workbook in Excel?

When you protect a workbook in Excel, which of the following is true?

AYou prevent users from opening the workbook without a password.
BYou prevent users from saving changes to the workbook.
CYou prevent users from editing cell contents in any worksheet.
DYou prevent users from adding, moving, deleting, or renaming worksheets.
Attempts:
2 left
💡 Hint

Think about what workbook protection controls versus worksheet protection.

📊 Formula Result
intermediate
2:00remaining
What is the result of this VBA code for workbook protection?

Consider this VBA code run in Excel:

ActiveWorkbook.Protect Password:="mypassword", Structure:=True, Windows:=False

What does this code do?

ARemoves protection from the workbook.
BProtects the workbook structure with password 'mypassword', but allows window resizing.
CProtects the workbook windows and structure with password 'mypassword'.
DProtects only the workbook windows with password 'mypassword'.
Attempts:
2 left
💡 Hint

Look at the parameters Structure and Windows carefully.

Function Choice
advanced
2:00remaining
Which Excel feature allows you to protect workbook structure without VBA?

You want to prevent users from adding or deleting sheets but allow editing cells. Which Excel feature should you use?

AProtect Workbook (Structure)
BProtect Sheet
CEncrypt with Password
DMark as Final
Attempts:
2 left
💡 Hint

Think about what controls sheet management versus cell editing.

🎯 Scenario
advanced
2:00remaining
You want to allow users to edit cells but not move or delete sheets. What should you do?

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?

AProtect the workbook structure with a password and leave sheets unprotected.
BProtect each sheet with a password and leave workbook unprotected.
CEncrypt the workbook with a password to open.
DMark the workbook as final.
Attempts:
2 left
💡 Hint

Think about which protection controls sheet management and which controls cell editing.

📊 Formula Result
expert
2:00remaining
What error occurs if you try to protect a workbook with an empty password in VBA?

What happens if you run this VBA code?

ActiveWorkbook.Protect Password:="", Structure:=True
AThe workbook protection is ignored and remains unprotected.
BA runtime error occurs because password cannot be empty.
CThe workbook is protected with no password, allowing anyone to unprotect it easily.
DExcel prompts the user to enter a password.
Attempts:
2 left
💡 Hint

Think about how Excel treats empty strings as passwords.