Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When using VBA to access the Autofilter method, is there a way to access the
# of Records found? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not really (since there is no guarantee it will be in the status bar), but
it is easy to get dim rng as Range set rng = Activesheet.autofilter.Range.columns(1).Cells set rng = rng.specialcells(xlvisible) msgbox "Records found: " & rng.count - 1 you subtract 1, because rng would include the header row. -- Regards, Tom Ogilvy "asmenut" wrote in message ... When using VBA to access the Autofilter method, is there a way to access the # of Records found? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
THANK YOU.
I knew there had to be a way to get the information I needed. I just needed to submit the question the right way. You guys are the best. Microsoft chose their MVP's very well "Tom Ogilvy" wrote: Not really (since there is no guarantee it will be in the status bar), but it is easy to get dim rng as Range set rng = Activesheet.autofilter.Range.columns(1).Cells set rng = rng.specialcells(xlvisible) msgbox "Records found: " & rng.count - 1 you subtract 1, because rng would include the header row. -- Regards, Tom Ogilvy "asmenut" wrote in message ... When using VBA to access the Autofilter method, is there a way to access the # of Records found? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I view..."no. of records found"... when I filter. | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Retrieving info from "child" to a "parent" document | Excel Discussion (Misc queries) | |||
Getting "compile error" "method or data member not found" on reinstall | Excel Programming |