Complete the code to lock a cell in Excel.
Range("A1").[1] = True
Setting the Locked property to True locks the cell so it can be protected.
Complete the code to protect the worksheet after locking cells.
ActiveSheet.[1] "password123"
The Protect method locks the worksheet so locked cells cannot be edited.
Fix the error in the code to unlock a cell before protecting the sheet.
Range("B2").[1] = False
To unlock a cell, set its Locked property to False.
Fill both blanks to create a dictionary of cell values where the value is greater than 10.
{cell.Address: cell.Value for cell in Range("A1:A5") if cell.Value [1] [2]The code filters cells with values greater than 10 using > and 10.
Fill all three blanks to create a dictionary of uppercase cell addresses with values greater than 0.
result = [1]: [2] for cell in Range("B1:B5") if cell.Value [3] 0}
The dictionary uses uppercase addresses as keys, cell values as values, and filters values greater than 0.
