Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chris,
You can use something like the following... '--------------------------- Dim N as Long Dim NewCount as Long N = Selection.Rows.Count NewCount = Selection.Columns(1).SpecialCells(xlCellTypeVisibl e).Count If N < NewCount Then MsgBox "Hidden Rows" End If '--------------------------------- Regards, Jim Cone San Francisco, CA "Chris Gorham" wrote in message ... Hi, I'm attempting to check whether a selection contains rows that are hidden.. For Each cell In Selection If cell.EntireRow.Hidden = True Then Selection.EntireRow.Hidden = False End If next cell This can take time to run if for instance the selection is of an entire column. Clearly I would only want to run through one column, rather than all those contained in selection. How can I improve on the syntax..?? Thks...Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
hide empty rows on open | Excel Discussion (Misc queries) | |||
I have more than 65K rows when I open Excel 2007 | Excel Discussion (Misc queries) | |||
hide columns/rows/cells on open | Excel Discussion (Misc queries) | |||
open new blank worksheet with over 65,000 rows | New Users to Excel | |||
Why are my columns and rows reversed when I open Excel | Excel Discussion (Misc queries) |