Bird
Raised Fist0
Excelspreadsheet~10 mins

Workbook protection in Excel - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to protect the workbook structure in Excel using VBA.

Excel
ThisWorkbook.Protect [1]:=True
Drag options to blanks, or click blank then click option'
APassword
BStructure
CWindows
DReadOnly
Attempts:
3 left
💡 Hint
Common Mistakes
Using Password instead of Structure
Using Windows which protects window size, not sheets
Using ReadOnly which is unrelated here
2fill in blank
medium

Complete the VBA code to unprotect the workbook with a password.

Excel
ThisWorkbook.Unprotect Password:= [1]
Drag options to blanks, or click blank then click option'
A"mypassword"
Bmypassword
C'mypassword'
Dpassword
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the password
Using single quotes which VBA does not recognize for strings
Using a variable name without defining it
3fill in blank
hard

Fix the error in the code to protect workbook windows and structure.

Excel
ThisWorkbook.Protect Structure:=True, [1]:=True
Drag options to blanks, or click blank then click option'
ASheets
BPassword
CReadOnly
DWindows
Attempts:
3 left
💡 Hint
Common Mistakes
Using Password without a value
Using ReadOnly which is unrelated
Using Sheets which is not a valid property here
4fill in blank
hard

Fill both blanks to protect the workbook with a password and structure protection.

Excel
ThisWorkbook.Protect [1]:=True, [2]:="secure123"
Drag options to blanks, or click blank then click option'
AStructure
BPassword
CWindows
DReadOnly
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping password and structure properties
Using Windows instead of Structure
Not using quotes around the password
5fill in blank
hard

Fill all three blanks to protect the workbook with a password, unprotecting structure but protecting windows.

Excel
ThisWorkbook.Protect [1]:="letmein", [2]:=False, [3]:=True
Drag options to blanks, or click blank then click option'
APassword
BStructure
CWindows
DReadOnly
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up Structure and Windows values
Not using quotes for the password
Using ReadOnly which is not valid here

Practice

(1/5)
1. What does protecting the workbook structure in Excel prevent users from doing?
easy
A. Adding, deleting, or moving worksheets within the workbook
B. Editing cell contents in any worksheet
C. Changing the font style in cells
D. Saving the workbook with a different name

Solution

  1. Step 1: Understand workbook structure protection

    Protecting the workbook structure stops users from changing the sheet layout, like adding or deleting sheets.
  2. Step 2: Identify what is restricted

    It does not stop editing cell contents or formatting, only structural changes.
  3. Final Answer:

    Adding, deleting, or moving worksheets within the workbook -> Option A
  4. Quick Check:

    Workbook structure protection = restrict sheet changes [OK]
Hint: Structure protection stops sheet changes, not cell edits [OK]
Common Mistakes:
  • Confusing structure protection with cell protection
  • Thinking it stops formatting changes
  • Believing it prevents saving or renaming
2. Which of the following is the correct way to protect a workbook's structure in Excel?
easy
A. File > Save As > Encrypt with Password
B. Go to Review tab > Protect Workbook > Check 'Structure' > Set password
C. Right-click a cell > Format Cells > Protection > Lock Cell
D. Go to Home tab > Format > Protect Sheet > Set password

Solution

  1. Step 1: Locate workbook protection option

    Workbook structure protection is found under Review tab > Protect Workbook.
  2. Step 2: Select 'Structure' and set password

    Check the 'Structure' box and optionally set a password to prevent changes.
  3. Final Answer:

    Go to Review tab > Protect Workbook > Check 'Structure' > Set password -> Option B
  4. Quick Check:

    Protect Workbook with Structure option = correct method [OK]
Hint: Use Review > Protect Workbook for structure protection [OK]
Common Mistakes:
  • Confusing Protect Sheet with Protect Workbook
  • Trying to lock cells instead of workbook structure
  • Using Save As encryption for structure protection
3. If a workbook is protected with structure protection enabled, what happens when a user tries to insert a new worksheet?
medium
A. Excel asks for the password before adding the worksheet
B. The new worksheet is added without any warning
C. The worksheet is added but remains hidden
D. Excel shows an error and prevents adding the worksheet

Solution

  1. Step 1: Understand effect of structure protection

    When structure protection is on, Excel blocks adding or deleting sheets.
  2. Step 2: What Excel does on insert attempt

    Excel shows an error message and does not allow the new sheet to be added.
  3. Final Answer:

    Excel shows an error and prevents adding the worksheet -> Option D
  4. Quick Check:

    Structure protection blocks sheet insertion = error shown [OK]
Hint: Structure protection blocks sheet insert with error [OK]
Common Mistakes:
  • Thinking Excel asks password on insert
  • Assuming sheet is added hidden
  • Believing new sheets can be added freely
4. You protected a workbook's structure with a password but forgot it. What is the best way to regain full access?
medium
A. Use a VBA macro to remove the protection
B. Try to unprotect the workbook without a password
C. Save the workbook as a new file to remove protection
D. Close and reopen the workbook to reset protection

Solution

  1. Step 1: Understand workbook protection password effect

    Without the password, Excel won't let you unprotect the workbook normally.
  2. Step 2: Use VBA macro to remove protection

    A VBA macro can be used to remove or bypass the protection if password is lost.
  3. Final Answer:

    Use a VBA macro to remove the protection -> Option A
  4. Quick Check:

    Lost password = VBA macro removal [OK]
Hint: Use VBA to remove forgotten workbook password [OK]
Common Mistakes:
  • Trying to unprotect without password (fails)
  • Saving as new file does not remove protection
  • Reopening file does not reset protection
5. You want to share an Excel file but prevent users from adding, deleting, or renaming sheets, while still allowing them to edit cell data. What steps should you take?
hard
A. Encrypt the file with a password to open
B. Protect each sheet with a password and leave workbook unprotected
C. Protect the workbook structure with a password and leave sheets unprotected
D. Lock all cells and protect sheets with a password

Solution

  1. Step 1: Identify protection needed for sheet structure

    Protecting the workbook structure stops adding, deleting, or renaming sheets.
  2. Step 2: Allow editing cell data by not protecting sheets

    Leaving sheets unprotected lets users edit cell contents freely.
  3. Final Answer:

    Protect the workbook structure with a password and leave sheets unprotected -> Option C
  4. Quick Check:

    Structure protection + unprotected sheets = desired control [OK]
Hint: Protect workbook structure only to restrict sheets, allow edits [OK]
Common Mistakes:
  • Protecting sheets blocks cell editing
  • Encrypting file restricts opening, not sheet changes
  • Locking cells and protecting sheets restricts editing
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard