How to Prevent the Cursor from Moving to the Next Unlocked Cell in Excel
Question details
The user wants to prevent the cursor from jumping to distant unlocked cells when navigating at the edge of an editable data-entry area in a protected worksheet.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Navigating within a protected worksheet that contains a mix of locked and unlocked cells.
- Observed behavior
- Pressing an arrow key at the boundary of unlocked cells moves the selection unexpectedly to another unlocked cell because the worksheet is configured to allow selecting locked cells.
Ensure you have the password used to protect the worksheet, as you will need to unprotect and re-protect the sheet to modify the selection settings.
Disable the 'Select locked cells' Option During Protection
By unprotecting the sheet and re-protecting it without allowing the selection of locked cells, you restrict cursor movement exclusively to the intended unlocked areas.
When Excel allows users to select locked cells, reaching the edge of an unlocked range causes the cursor to jump to the next available unlocked cell, skipping over the locked ones. Disabling the ability to select locked cells entirely confines navigation to the active unlocked range.
Go to the 'Review' tab on the ribbon and click 'Unprotect Sheet'. Enter the worksheet password if prompted.
Still on the 'Review' tab, click 'Protect Sheet' to open the protection dialogue box.
In the 'Allow all users of this worksheet to' list, uncheck the box next to 'Select locked cells'. Make sure 'Select unlocked cells' remains checked.
Enter your desired password in the password field, click 'OK', re-enter the password to confirm, and click 'OK' again.

Easily Control Cell Selection and Protection with WPS Office
WPS Spreadsheet provides a highly intuitive interface for locking cells, protecting sheets, and managing cursor behavior. It allows you to easily restrict navigation to editable fields without unexpected cursor jumps.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your .xlsx worksheet.
- 2. Navigate to the Review Tab: Click on the 'Review' tab located on the top ribbon and select 'Protect Sheet'.
- 3. Configure Selection Rules: Uncheck 'Select locked cells', enter a secure password, and click 'OK' to apply the new cursor behavior.

Frequently Asked Questions
Why does the Tab key still jump to distant cells?
The Tab key is designed to navigate sequentially through all unlocked cells in a protected sheet. Even if 'Select locked cells' is disabled, pressing Tab will jump to the next available unlocked cell based on the standard reading order (left to right, top to bottom).
Can I restrict cursor movement using VBA?
Yes, you can use VBA to set the 'EnableSelection' property of the worksheet to 'xlUnlockedCells'. This enforces the same behavior without having to manually change the protection dialog settings.
How do I unlock specific cells before protecting the sheet?
Select the cells you want to be editable, right-click and choose 'Format Cells', go to the 'Protection' tab, and uncheck the 'Locked' box. After doing this, you can proceed to protect the worksheet.




