LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Modify ? Tom Ogilvy "count visible filter records"

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

The above code is from Tom Olgilvy as copied from the
contextures web site.

My questions about this neat code include:

- can I set it up to run in every work book I open (maybe
run from personal)

- can I set it up to run everytime I change a filter on
an auto filter list.

Thanks for the time - I use auto filter almost everyday
and the count of records not showing in the lower
left "because I must have auto calc on" is killing me.

Thanks Todd Frisch


 
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
How do I view..."no. of records found"... when I filter. David O. Excel Discussion (Misc queries) 3 September 14th 09 09:21 PM
How to Count only visible filered cells "FP" Jim[_8_] Excel Worksheet Functions 5 December 8th 08 12:41 AM
"Live" Advanced Filter (for unique records) RussG Excel Discussion (Misc queries) 15 August 3rd 07 01:10 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
count of records with 2 or more "options" selected Monish Excel Worksheet Functions 1 October 23rd 05 03:10 AM


All times are GMT +1. The time now is 06:56 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"