PC Review


Reply
Thread Tools Rate Thread

determine if there are hidden rows in a column

 
 
=?Utf-8?B?ZGs=?=
Guest
Posts: n/a
 
      29th Oct 2006
is there a way with vba to determine if
there are hidden rows in a column or range, without
looping through entire range?

tia,
dk
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      29th Oct 2006
You can tell if there are hidden rows using this:
If YourRange.Cells.Count > YourRange.SpecialCells(xlCellTypeVisible).Count
Then
Msgbox "You have hidden cells"
End If
Then you can return the address of the visible ones like this:
MsgBox YourRange.SpecialCells(xlCellTypeVisible).Address
--
Charles Chickering

"A good example is twice the value of good advice."


"dk" wrote:

> is there a way with vba to determine if
> there are hidden rows in a column or range, without
> looping through entire range?
>
> tia,
> dk

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add up column of numbers without including hidden rows? laserhallam Microsoft Excel Misc 3 1st Feb 2008 05:35 AM
Sum of a column excluding hidden rows =?Utf-8?B?bW53aWxkMQ==?= Microsoft Excel Worksheet Functions 10 22nd Jun 2007 11:24 PM
Determine Cells(5,4) IN SPITE of hidden rows/columns Finny Microsoft Excel Programming 7 1st Mar 2007 04:01 PM
Last cell in column (with hidden rows) Pink Panther Microsoft Excel Programming 2 8th Jul 2005 09:19 PM
How to Determine if column of certain rows in a text file has data? Tony Microsoft Excel Programming 1 1st Feb 2005 08:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 PM.