A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Viewing of protected locked or unlocked cells



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2009, 02:52 PM posted to microsoft.public.excel.worksheet.functions
jmisenar
external usenet poster
 
Posts: 1
Default Viewing of protected locked or unlocked cells

Is there a way to view an entire workshees to see which cells are locked and
unlocked?
--
Jan
  #2  
Old April 21st, 2009, 07:00 PM posted to microsoft.public.excel.worksheet.functions
kassie
external usenet poster
 
Posts: 444
Default Viewing of protected locked or unlocked cells

One way is to protect the sheet, and untick Select locked cells. Repeatedly
pressing Tab will then take you to the unlocked cells only.

--
HTH

Kassie

Replace xxx with hotmail


"jmisenar" wrote:

Is there a way to view an entire workshees to see which cells are locked and
unlocked?
--
Jan

  #3  
Old April 22nd, 2009, 04:58 AM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Viewing of protected locked or unlocked cells

To color locked cells.

Sub Locked_Cells()
'Bob Flanagan source of code
Dim Cell As Range, tempR As Range, rangeToCheck As Range
'check each cell in the selection
For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
If Cell.Locked Then
If tempR Is Nothing Then
'initialize tempR with the first qualifying cell
Set tempR = Cell
Else
'add additional cells to tempR
Set tempR = Union(tempR, Cell)
End If
End If
Next Cell
'display message and stop if no cells found
If tempR Is Nothing Then
MsgBox "There are no Locked cells " & _
"in the selected range."
End
End If
'select qualifying cells
tempR.Interior.ColorIndex = 3
End Sub


Gord Dibben MS Excel MVP

On Tue, 21 Apr 2009 06:52:01 -0700, jmisenar
wrote:

Is there a way to view an entire workshees to see which cells are locked and
unlocked?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.