get_PageFields

  • Thread starter Thread starter Tysken
  • Start date Start date
T

Tysken

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Pivot: grand totals 4
visual c# excel 2007 pivot filter 0
Drop downs and look up 4
Macro to FIND/REPLACE 1
Too negative XIRR? 3
How to get actual sheet in my workbook? 4
VB Code 4
Windows 10 One Drive Problem 2

Back
Top