Hi,
I have a workbook with a pivot tables on each tab, these pivot tables are connected to an OLAP Cube in MS SQL Server database, I am trying to update all pivots programmatically by changing the filter items. Any help is appreciated.
Thx
Hi,
I have a workbook with a pivot tables on each tab, these pivot tables are connected to an OLAP Cube in MS SQL Server database, I am trying to update all pivots programmatically by changing the filter items. Any help is appreciated.
Thx
When you say update, do you mean you wish to change whata is being filtered, or add/remove items from therows/columns?
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
I mean change what it is filtered.
You have to specify the dimension, the item in the dimension and the value.
This is an example from one of mine
[vba]
ActiveSheet.PivotTables("myPivot").PivotFields( _
"[Location Master].[Location Hierarchy]").CurrentPageName = _
"[Location Master].[Location Hierarchy].[Location Type].&[BONDED]"
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber