Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to test if any row is hidden without opening them up.
Can anyone suggest an alternative to testing each row Count = Cells(Rows.Count, 1).End(xlUp).Row Count = 1 While Row(Count,1).hidden = false Count = Count + 1 Wend Which I have not tried that yet, it should work but seems messy Camlad |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Camlad
You can get this without using a loop. ActiveSheet.Rows.Count - Range("A1:A" & ActiveSheet.Rows.Count).Rows.SpecialCells(xlCellTy peVisible).Count If this post is helpful click Yes ------------- Jacob Skaria |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Brilliant - thank you Jacob
This is how it worked out: Sub ToggleHideUnhideRows() If ActiveSheet.Rows.Count - Range("A1:A" & _ ActiveSheet.Rows.Count).Rows.SpecialCells(xlCellTy peVisible).Count < 0 Then OpenUp Else HideBlankDates End If End Sub I am most gateful Camlad "Jacob Skaria" wrote in message ... Hi Camlad You can get this without using a loop. ActiveSheet.Rows.Count - Range("A1:A" & ActiveSheet.Rows.Count).Rows.SpecialCells(xlCellTy peVisible).Count If this post is helpful click Yes ------------- Jacob Skaria |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opening a group but keep hidden rows hidden | Excel Discussion (Misc queries) | |||
Hidden rows columns won't stay hidden | Excel Worksheet Functions | |||
Rows hidden by Autofilter vs hidden by changing the Hidden property | Excel Programming | |||
Formula or Code to keep Hidden Rows Hidden | Excel Worksheet Functions | |||
I need my Hidden Rows to stay hidden when I print the sheet. | Excel Discussion (Misc queries) |