Todd,
No. Hiding rows and columns doesn't change anything about the cell value
that can be detected through a formula - SUBTOTAL, which only acts on
visible cells, requires that those cells not included be hidden through
filtering, not through row height modification.
You could use a User-Defined-Functions that would return TRUE if any row or
column was hidden:
Function HiddenRowOrCol() As Boolean
Dim myRow As Long
Dim myRowCount As Long
Dim myCol As Integer
Dim myColCount As Integer
Dim mySht As Worksheet
Set mySht = Application.Caller.Parent
myColCount = mySht.UsedRange(mySht.UsedRange.Cells.Count).Column
For myCol = 1 To myColCount
If mySht.Columns(myCol).Hidden Then
HiddenRowOrCol = True
Exit Function
End If
Next myCol
myRowCount = mySht.UsedRange(mySht.UsedRange.Cells.Count).Row
For myRow = 1 To myRowCount
If mySht.Rows(myRow).Hidden Then
HiddenRowOrCol = True
Exit Function
End If
Next myRow
End Function
Used like
=HiddenRowOrCol()
This is not volatile, so would require recalculation to accurately reflect
any changes.
HTH,
Bernie
MS Excel MVP
Todd said:
Is there a way to get conditional formatting to flag me if I have any
hidden columns or rows in a worksheet? I know, I know, I know it would be
easy to simply check. But I keep forgetting. Thanks,