This could be quite a simple question, but I am trying to cycle through the items on a PivotField
using VBA. I have written:
However Item (and Page) seems to be an undefined variable. I would like to cycle through each country (Albania, Belgium, Canada etc) and run a macro for the data associated with that country. What variable should I be using?
using VBA. I have written:
Code:
For Each Item In PT.PivotFields("Country")
'Code inserted here
Next Item