Office Settings & Configuration

How to Prevent the Cursor from Moving to the Next Unlocked Cell in Excel

Camila MilosovichCamila Milosovich Nov 4, 2026 870 views

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.

How to Prevent the Cursor from Moving to the Next Unlocked Cell in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Unprotect the Worksheet

Go to the 'Review' tab on the ribbon and click 'Unprotect Sheet'. Enter the worksheet password if prompted.

2
Open Protection Settings

Still on the 'Review' tab, click 'Protect Sheet' to open the protection dialogue box.

3
Clear the Selection Option

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.

4
Apply Protection

Enter your desired password in the password field, click 'OK', re-enter the password to confirm, and click 'OK' again.

Disable the 'Select locked cells' Option During Protection
Cursor Movement Restricted: The cursor will now only move between unlocked cells naturally. When using arrow keys at the edge of a range, the selection will no longer jump across protected areas.
Manage Worksheet Protection in WPS Spreadsheet

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. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your .xlsx worksheet.
  2. 2. Navigate to the Review Tab: Click on the 'Review' tab located on the top ribbon and select 'Protect Sheet'.
  3. 3. Configure Selection Rules: Uncheck 'Select locked cells', enter a secure password, and click 'OK' to apply the new cursor behavior.
Fully compatible with Microsoft Excel (.xlsx) formats and protection passwords.Intuitive Review tab to quickly configure 'Select locked cells' and other protection rules.Free and lightweight Office suite with a familiar user interface.
microsoft office alternative - wps office

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.