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

Hello,

I have a small problem in my Excel Addin that i'm working with.

I'm trying to get the items that are chosen in my filter but do not get it
to work.

How do I iteralte over the filter values that are chosen?

My dimension looks like this

Year
All
|- 2008
|- 2009

I've tried get_PageFields, but dont get it to work. I can only get 'All' but
not 2008 that are the value that are choosen.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default get_PageFields

Hi

Suppose you have filtered range A1:A100 with headings in A1, try this:

Dim FilteredRange as Range
Set FilteredRange="A2:A100" '(Exclude header row)
For Each cell in FilteredRange.SpecialCells(xlCellTypeVisible)
.....
Next

Hopes this helps.
....
Per

On 11 Jan., 18:41, Tysken wrote:
Hello,

I have a small problem in my Excel Addin that i'm working with.

I'm trying to get the items that are chosen in my filter but do not get it
to work.

How do I iteralte over the filter values that are chosen?

My dimension looks like this

Year
All
|- 2008
|- 2009

I've tried get_PageFields, but dont get it to work. I can only get 'All' but
not 2008 that are the value that are choosen.


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



All times are GMT +1. The time now is 11:32 AM.

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"