Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JRB JRB is offline
external usenet poster
 
Posts: 12
Default AutoFilter - How to determine number of records found

I would like to display a message containing the number of records found by
an autofilter run from vba

How do I count the records ?

Regards & TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default AutoFilter - How to determine number of records found

Use ...
MsgBox Application.WorksheetFunction.Subtotal(3, Range("A:A"))
where A:A is the range you want to count.
--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"JRB @eclipse.co.uk" wrote:

I would like to display a message containing the number of records found by
an autofilter run from vba

How do I count the records ?

Regards & TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
JRB JRB is offline
external usenet poster
 
Posts: 12
Default AutoFilter - How to determine number of records found

Exactly what I needed - Muchly Grateful

BTW - No 'Yes' at bottom of the post

"Gary Brown" wrote in
message ...
Use ...
MsgBox Application.WorksheetFunction.Subtotal(3, Range("A:A"))
where A:A is the range you want to count.
--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of
the
post.



"JRB @eclipse.co.uk" wrote:

I would like to display a message containing the number of records found
by
an autofilter run from vba

How do I count the records ?

Regards & TIA





Reply
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 to get number of filtered records found displayed in a cell? Jessica New Forest Excel Worksheet Functions 4 March 25th 09 11:57 AM
In Excel, How do I get AutoFilter to provide# of records found? DougD Excel Discussion (Misc queries) 1 June 19th 08 07:51 PM
How to change left bottom note that tell number records found? Cpviv New Users to Excel 1 June 13th 08 04:46 PM
How to "Capture" Records Found Number During AutoFilter Paputxi Excel Programming 2 March 21st 06 02:43 AM
Advanced Filter: Number of Records Found Charlie Rowe Excel Discussion (Misc queries) 2 November 3rd 05 09:09 PM


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