LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default autofilter range count

Thanks Tom. I've updated the code.

Tom Ogilvy wrote:
Actually that would be more robust if it were

Sub CountVisRows()
'by Tom Ogilvy
Dim rng As Range
Set rng = ActiveSheet.AutoFilter.Range

MsgBox rng.Columns(1). _
SpecialCells(xlVisible).Count - 1 _
& " of " & rng _
.Rows.Count - 1 & " Records"

End Sub
-- Regards,Tom Ogilvy"Frank Kabel" wrote in message
...

Hi
have a look at
http://www.contextures.com/xlautofilter03.html#Count

--
Regards
Frank Kabel
Frankfurt, Germany


When you filter a range between to dates, does anyone know how to
count the filtered results?

Regards
Paul



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoFilter and row count Bob Excel Discussion (Misc queries) 5 March 29th 07 12:40 AM
auto count from autofilter Marisa Excel Discussion (Misc queries) 1 November 8th 06 04:09 AM
Count cells in a column that has a autofilter Irv Excel Worksheet Functions 1 October 31st 06 07:39 PM
Count Not Appearing when using AutoFilter? BBob Excel Worksheet Functions 3 July 14th 05 11:56 PM
Autofilter record count Debbie Thompson Excel Discussion (Misc queries) 1 February 11th 05 05:32 PM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"