Thanks for replying me
I've recreated the whole work book with English items instead of Arabic.
Now you can open and read and understand
In the report sheet, when you open the Years filter you can see 3 years which are 2016-20017-2018
In the daily Entries sheet a the top you can find 3 cells named:
CalenderPreviousYear
CalenderCurrentYear
CalenderNextYear
So the macro I want to make to filter the years I want it to include the names instead of values.
I'm creating a new sheet each new year, so I want to just fill in the years in these 3 cells without changing anything in the pivot table or the macro I will create.
This is why I want to make the macro include Name instead of its Value
This is the macro I've recorded
So it contains dates which will not work later on if I changed years to 2017-20018-2019
This is why I've asked about a way to include the name instead of value.
I am searching since yesterday and can not find a way to replace PivotItem with something else
Also tried to play with XlPivotFilterType as I've posted about it here bu no luck at all.
I can use he NAME I've set for the cells in any equation as fine.
I hope that I was able to clear my point.
Thanks
Bookmarks