Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2006

Tip: Looking for answers? Try searching our database.

Auto Filter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Worker Bee - 21 Mar 2006 03:05 GMT
How do I capture the value that is shown on the bottom left corner after I
perform a filter function.  I need to use that number within a macro.  Thanks
for the Help!!!
Dave Peterson - 21 Mar 2006 03:25 GMT
Are you Paputxi?

Option Explicit
Sub testme()

   Dim TotalRows As Long
   Dim VisibleRows As Long

   With ActiveSheet.AutoFilter.Range.Columns(1)
       'subtract the header from both
       TotalRows = .Cells.Count - 1
       VisibleRows = .Cells.SpecialCells(xlCellTypeVisible).Count - 1
   End With
   
   MsgBox VisibleRows & " of " & TotalRows & " records found"
End Sub

> How do I capture the value that is shown on the bottom left corner after I
> perform a filter function.  I need to use that number within a macro.  Thanks
> for the Help!!!

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.