Hi,
I'm trying to write a macro to select the multiple sets of the same data for several PIVOT tables. I've tried Slicers but it seems that this takes up too much processing power and always times out.
My workaround is to do a macro that picks out the said data, however when i do the below, plus another 4-500 lines i get told that there are too many line continuations
What i'm looking to do is express all the postcodes in one line or at least multiple post codes in one go, this is what i've tried
and
But to no avail.
Any ideas, i'm sure its just someting little but need pointing in the right direction.
Thanks
I'm trying to write a macro to select the multiple sets of the same data for several PIVOT tables. I've tried Slicers but it seems that this takes up too much processing power and always times out.
My workaround is to do a macro that picks out the said data, however when i do the below, plus another 4-500 lines i get told that there are too many line continuations
Code:
ActiveSheet.PivotTables("PivotTable6").PivotFields( _
"[Postal District].[Postal District].[Postal District]").VisibleItemsList = _
Array("[Postal District].[Postal District].&[AB11]", _
"[Postal District].[Postal District].&[AB12]", _
"[Postal District].[Postal District].&[M2]", _
"[Postal District].[Postal District].&[M3]", _
"[Postal District].[Postal District].&[M4]", _
"[Postal District].[Postal District].&[M5]", _
"[Postal District].[Postal District].&[M6]", _
"[Postal District].[Postal District].&[M7]", _
"[Postal District].[Postal District].&[M8]", _
"[Postal District].[Postal District].&[M9]", _
"[Postal District].[Postal District].&[N1]", _
"[Postal District].[Postal District].&[N2]", _
"[Postal District].[Postal District].&[N3]", _
"[Postal District].[Postal District].&[N4]") _
"[Postal District].[Postal District].&[AB13]")
Range("A14").Select
What i'm looking to do is express all the postcodes in one line or at least multiple post codes in one go, this is what i've tried
Code:
"[Postal District].[Postal District].&[AB12].&[AB13]"
Code:
"[Postal District].[Postal District].&[AB12,AB13]"
But to no avail.
Any ideas, i'm sure its just someting little but need pointing in the right direction.
Thanks