Good day: I am trying to change a pivot filter field by pointing it to a cell value in a sheet.
using the below code :
Where value in D1 is September. so dt = SeptemberPlease Login or Register to view this content.
getting "run-Time error '1004':"
the pivot filter field is stored in a cube which is the source of the data
when i record changing the fields manually i get below code:
so with recording it seems it uses [Time].[Month Name].&[April]".Please Login or Register to view this content.
tried changing dt to say &[September] and still nothing.
also tried the below code and it runs but selects everything under the month name:
Please Login or Register to view this content.
EDIT NOTE: this is using OLAP fields so I think I am going wrong with PivotItem.Name property
any ideas here on where I am going wrong?
Thanks
Bookmarks