Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Merlin
 
Posts: n/a
Default how can identify locked/hidden cells at a glance


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

For hidden cells, I don't think you can do anything besides look and not see
them <g.

But for locked cells, you can use format|conditional formatting (if you're not
using it for something else).

With the range you're concerned about selected, you can use a formula like:
=CELL("protect",A1)
(Change A1 to the activecell)




Merlin wrote:

--

Dave Peterson
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

When I look for hidden rows/columns, I look at the worksheet row and column
headers looking for skipped numbers/letters.

If the rows have been hidden by a filter, you can see that the row numbering (in
the row headers) in that filtered range now has a blue font.

You could run a macro that counts the visible/hidden rows/columns:

Option Explicit
Sub testme()

Dim wks As Worksheet
Dim visCols As Long
Dim visRows As Long

Set wks = ActiveSheet

With wks
visCols = 0
visRows = 0
On Error Resume Next
visCols = Intersect(.Cells.SpecialCells(xlCellTypeVisible) _
.EntireColumn, .Rows(1)).Cells.Count
visRows = Intersect(.Cells.SpecialCells(xlCellTypeVisible) _
.EntireRow, .Columns(1)).Cells.Count
On Error GoTo 0
If visCols < .Columns.Count _
Or visRows < .Rows.Count Then
MsgBox "Visible Rows: " & visRows & vbLf & _
"Hidden Rows: " & .Rows.Count - visRows & vbLf & vbLf & _
"Visible Col: " & visCols & vbLf & _
"Hidden Cols: " & .Columns.Count - visCols
Else
MsgBox "No hidden rows/columns"
End If
End With

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


Dave Peterson wrote:

For hidden cells, I don't think you can do anything besides look and not see
them <g.

But for locked cells, you can use format|conditional formatting (if you're not
using it for something else).

With the range you're concerned about selected, you can use a formula like:
=CELL("protect",A1)
(Change A1 to the activecell)

Merlin wrote:

--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create formula to identify duplicate cells? Kelly Lacey Excel Worksheet Functions 7 February 8th 10 06:33 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 02:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"