Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default autofilter question

know how the status bar shows "x out y records found"? is there any way to
return the x value? i can count the rows, but excel already counted them and
just wondering if that can be captured.

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default autofilter question

ok, so is the only way to get a count of the filtered records is to use
something like your code?

MsgBox rng.Columns(22).SpecialCells(xlCellTypeVisible).Co unt - 1 & " of " &
rng.Rows.Count - 1 & " Records"


--


Gary


"Tom Ogilvy" wrote in message
...
No, if Excel has control of the statusbar, then Application.Statusbar returns
false, not the message.

--
regards,
Tom Ogilvy


"Gary Keramidas" wrote:

know how the status bar shows "x out y records found"? is there any way to
return the x value? i can count the rows, but excel already counted them and
just wondering if that can be captured.

--


Gary






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default autofilter question

thanks

here's what i ended up using

sTotal = WorksheetFunction.Subtotal(103, Range("v24:V" & endrow))

--


Gary


"Alok" wrote in message
...
Use formula

=Subtotal(3,A2:A50)
Here A2:A50 is the range that has been filtered.

Alok

"Gary Keramidas" wrote:

know how the status bar shows "x out y records found"? is there any way to
return the x value? i can count the rows, but excel already counted them and
just wondering if that can be captured.

--


Gary






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default autofilter question

i used 103 & 109, i only want visible cells. it did what i needed

--


Gary


"Alok" wrote in message
...
Hi Gary,

Did you use 103 ? or is that a typo?

Alok

"Gary Keramidas" wrote:

thanks

here's what i ended up using

sTotal = WorksheetFunction.Subtotal(103, Range("v24:V" & endrow))

--


Gary


"Alok" wrote in message
...
Use formula

=Subtotal(3,A2:A50)
Here A2:A50 is the range that has been filtered.

Alok

"Gary Keramidas" wrote:

know how the status bar shows "x out y records found"? is there any way
to
return the x value? i can count the rows, but excel already counted them
and
just wondering if that can be captured.

--


Gary









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
Autofilter Question veryeavy Excel Discussion (Misc queries) 0 April 24th 08 02:00 AM
AutoFilter Question Ram Excel Discussion (Misc queries) 6 November 27th 06 04:05 PM
Autofilter Question David Excel Programming 0 May 18th 06 07:49 AM
Autofilter Question Acute Mind[_2_] Excel Programming 2 April 1st 05 02:14 PM
Autofilter Question geen Excel Programming 2 September 25th 03 08:08 PM


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