Mike Blackman
Well-known Member
- Joined
- Jun 8, 2007
- Messages
- 2,494
Hi All,
Anyone have any idea why this doesn't work and can anyone think of any efficient ways of counting the number of hidden rows without looping through the usedrange?
FYI... the problem is that when there is are hidden row(s) its returning rows.count - the last row before the first hidden row.
Anyone have any idea why this doesn't work and can anyone think of any efficient ways of counting the number of hidden rows without looping through the usedrange?
Code:
wks.Columns.Count - wks.Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count
FYI... the problem is that when there is are hidden row(s) its returning rows.count - the last row before the first hidden row.