how can you see the locked cells

bluebellsix

New Member
Joined
Oct 1, 2010
Messages
4
if i have a sheet with locked cells is there anyway i can see them like the Find command where you can highlight cells which have no formulas or formulas thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi - do you know the password?

Could try this if so:

Code:
Sub Noformula()
 
Dim rng As Range
Dim cl As Range
 
Set rng = Range("A1:D100")
 
ActiveSheet.Unprotect Password:="[I]mypassword[/I]"

For Each cl In rng
 
If cl.Formula = "" Then
 
cl.Interior.ColorIndex = 6
 
End If
 
Next cl
 
ActiveSheet.Protect Password:="[I]mypassword[/I]"
 
End Sub
 
Upvote 0
yes have the password - i have been asked to show someone how they can tell what cells have been locked on a spreadsheet dont think your way is so user friendly i have suggested that they highlight the cells and colour them before they set the protection - but this is a sheet which has already had locked cells and they want to know how you can tell which ranges of cells but thanks for your reply
 
Upvote 0
if i have a sheet with locked cells is there anyway i can see them like the Find command where you can highlight cells which have no formulas or formulas thanks
You can use the Find command to do that as well. Select a range of cells to process (if you did not unlock all the cells before locking some of them, do not select all the cells... you will overwhelm your memory) and press CTRL+F to bring up the Find dialog box. Make sure the "Find what" field is empty, then click the "Options>>" button to reveal all the options. Click the Format button, select the "Protection" tab and put a check mark in the "Locked" checkbox and click OK to go back to the Find dialog box. Next click the "Find All" button and when the list is displayed in the table at the bottom of the dialog box, press CTRL+A to select them all. When you click the "Close" button, all locked cells will be selected. You can now do whatever you want with the selection (for example, color their interiors).
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top