Hi, folks,
I've been using Pivot tables for a while but one thing that bothers me a lot but I cannot do anything about it.
Suppose I created a Pivot table that had at least 2 page fields. One was called 'State' and the other 'County'. We all know one state has more than one county, i.e., the state is bigger.
If I selected state: NJ, the County field was supposed to show all the counties in NJ and that's what I expected. In fact, it would show all the counties in the 50 states.
If I put Autofilter on the same data source, it will give me what I expected. But P-tables cannot.
I know Pivot tables themselves do not have any functionality to fix this kind of situation so I am wondering if VBA can solve the problem.
Hope I made myself clear.
Thanks in advance.
feipezi.
I've been using Pivot tables for a while but one thing that bothers me a lot but I cannot do anything about it.
Suppose I created a Pivot table that had at least 2 page fields. One was called 'State' and the other 'County'. We all know one state has more than one county, i.e., the state is bigger.
If I selected state: NJ, the County field was supposed to show all the counties in NJ and that's what I expected. In fact, it would show all the counties in the 50 states.
If I put Autofilter on the same data source, it will give me what I expected. But P-tables cannot.
I know Pivot tables themselves do not have any functionality to fix this kind of situation so I am wondering if VBA can solve the problem.
Hope I made myself clear.
Thanks in advance.
feipezi.