P
pikapika13
I'm new to VBA.
I'm passing a value to "Acell":
Acell = ActiveCell
However, the following code does not work:
ActiveSheet.PivotTables("PivotTable10").PivotFields("utcid")
..PivotItems(Acell).Visible = False
But when I manually put in "37" (in quotes), it works. Please help.
BTW, is there a way to follow your code step by step? similar to the
formula auditing tool in Excel?
I'm passing a value to "Acell":
Acell = ActiveCell
However, the following code does not work:
ActiveSheet.PivotTables("PivotTable10").PivotFields("utcid")
..PivotItems(Acell).Visible = False
But when I manually put in "37" (in quotes), it works. Please help.
BTW, is there a way to follow your code step by step? similar to the
formula auditing tool in Excel?