Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default traversing a filtered range (excel 2007)

Hi.

Here's what I am looking to achieve. I have a list of actions like
such:

Name action cost VAT

Alex hamburger 3.59 1.2
Alex potato chips 5.06 1.6
John hamburger 3.59 1.2
Alex payment -3.59 -1.2

I also have a cell that should display balance.
Now, what I want it to do is to display a calculational result over a
FILTERED range, where filter is set via standard GUI. I am assuming
formulas are of no use here (please correct me if I am wrong), so what
I need to know is how to most efficiently traverse a FILTERED range in
VBA.

Thank you for your advice.

Alex.
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 5
Default traversing a filtered range (excel 2007)

Also, how do I hook into the event of filter change?
thanks again.
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 220
Default traversing a filtered range (excel 2007)

Take a look at the SUBTOTAL function. You can do subtotals over the entire
range you select, or just the rows or columns that are not hidden. Look in
Excel help.

HTH,

Eric

"parahumanoid" wrote:

Hi.

Here's what I am looking to achieve. I have a list of actions like
such:

Name action cost VAT

Alex hamburger 3.59 1.2
Alex potato chips 5.06 1.6
John hamburger 3.59 1.2
Alex payment -3.59 -1.2

I also have a cell that should display balance.
Now, what I want it to do is to display a calculational result over a
FILTERED range, where filter is set via standard GUI. I am assuming
formulas are of no use here (please correct me if I am wrong), so what
I need to know is how to most efficiently traverse a FILTERED range in
VBA.

Thank you for your advice.

Alex.
.

  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 5
Default traversing a filtered range (excel 2007)

The catch is that I don't know what lines will be filtered out. The
user determines that by setting filters' values.
Plus, I am not sure if autofilter works by giving lines a hidden value
or by some deeper internal means.
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
cannot delete filtered rows in excel 2007 Cindy E Excel Discussion (Misc queries) 3 October 6th 08 07:09 PM
Excel 2007 - Deleting Filtered Rows Marcia Excel Discussion (Misc queries) 2 April 3rd 08 09:26 PM
copying filtered data in Excel 2007 mlc Excel Discussion (Misc queries) 2 January 7th 08 07:24 PM
Delete Filtered Rows in Excel 2007 Moon Excel Discussion (Misc queries) 7 October 2nd 07 03:52 PM
Copying Filtered Data in Excel 2007 Chgofan Excel Worksheet Functions 5 September 26th 07 07:06 PM


All times are GMT +1. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"