Hi there
I am building on from this here
Attached is the file I am working off.
I have the below macro that basically makes all the dates invisible(i.e. it removes the dates from the pivot chart). I am assuming all the dates are visible.
But I get the following error, which is as I understand it to be, because this is the last date that is visible thereby it is not allowed to be made invisible.
Run time error’1004’: Unable to set the Visible property of the PivotItem class
Which points to this bit of code for debug
Now what I want to do is make only one date disappear by changing the above code to
which gives the following
Which gives a compile error: Wrong number of arguments or invalid property assignment
Can anyone help here please?
Specifically, Can anyone suggest how I can make one date invisible as I am trying to do in Sub ShowAllItemsks3() above?
Thanks
Bookmarks