Skip to main content

How to identify and select all locked cells in Excel?

To protect important cells from modifying before distribution, normally we lock and protect them. However, we may get trouble in remembering the location of locked cells, and get popping up warning alert now and then, when we re-edit the worksheet later. Therefore, we introduce you three tricky ways to identify and select all locked cells in Excel quickly.


Identify and select all locked cells with Find command

Actually, we can find out all locked cells in active worksheet with Find command by following steps:

Step 1: Click Home > Find & Select > Find to open the Find and Replace dialog box. You can also open this Find and Replace dialog box with pressing the Ctrl + F keys.

Step 2: Click the Format button in the Find and Replace dialog box. If you can't view the Format button, please click the Options button firstly.
doc-select-locked-cells1

Step 3: Now you get into the Find Format dialog box, check the Locked option under Protection tab, and click OK.
doc-select-locked-cells2

Step 4: Then back to the Find and Replace dialog box, click the Find All button. Now all locked cells are found and listed at the bottom of this dialog box. You can select all searching results with holding the Ctrl key or Shift key, or pressing the Ctrl + A keys.
doc-select-locked-cells3

If you check the Select locked cells option when you Lock and protect selected cells, it will select all locked cells in active worksheet, and vice versa.


Identify and select all locked cells with Kutools for Excel

Kutools for Excel's Select Cells with Format utility can help you quickly select all locked cells in a certain range. You can do as follows:

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!

1. Select the range in which you will select all locked cells, and click the Kutools > Select > Select Cells with Format.

2. In the opening Select cells with Format dialog box, you need to:

 

(1) Click the Choose Format From Cell button, and select a locked cell.

Note: If you can't remember which cell is locked, please select a cell in a blank sheet that you never used it before.

(2) Uncheck the Type option;

(3) Only check the Locked option;

 

3. Click the Ok button.

Then you will see all locked cells in the selected range are selected as below screen shot shown:

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Identify all locked cells with Kutools for Excel's Highlight Unlocked utility

Actually, Kutools for Excel provide another Highlight Unlocked utility to highlight all unlocked cells in the whole workbook. By this utility, we can identify all locked cells at a glance.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!

Click the Kutools Plus > Worksheet Design to enable the Design tab, and then click the Highlight Unlocked button on the Design tab. See below screen shot:

Now you will see all unlocked cells are filled by color. All cells without this fill color are locked cells.

Note: Once you locked an unlocked cell in current workbook, the fill color will be removed automatically.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Demo: Identify and select all locked cells from selection or current sheet


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thanks - worked a treat!
This comment was minimized by the moderator on the site
This code works perfect for me. Do you have code to "unselect" the cells?
This comment was minimized by the moderator on the site
Tried using this code. Get at compile syntax error In code Sub Selectlockedcells() highlighted in yellow Red highlighted - For Each Rng In WorkRng If Rng.Locked Then If OutRng.Count = 0 Then Set OutRng = Rng Else Set OutRng = Union(OutRng, Rng) End If      End If Next I'm trying this on a sheet that is protected. Tried protected/unprotected - get same error message
This comment was minimized by the moderator on the site
I've tried to use the VBA code but I get a compile error at the "If Rng.Locked Then" I'm trying to get this to work on a sheet that is protected. I've protected/unprotected but code stops at this point? Am I missing something.
This comment was minimized by the moderator on the site
Under certain conditions, this macro does NOT tell the truth. If you for example unlock the entire column B of a new worksheet and then run the macro, it will wrongly assert that all cells are locked. The reason for such behavior is that format changes (like unlocking a range) applied to entire columns or rows or sheets are mostly affecting cells outside UsedRange as well.
This comment was minimized by the moderator on the site
Thank you for your reply, we have re-write a new code for selecting locked cells directly, and the code is only applied for the used range. Please try it.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations