Torstensson
New Member
- Joined
- May 27, 2011
- Messages
- 6
Hi,
Trying to change to visibility in some pivottables with a macro.
Run-time error 1004
Unable to set the Visible property of the PivotItem class.
Been trying to find a solution but nothing has worked so far.
Trying to change to visibility in some pivottables with a macro.
Run-time error 1004
Unable to set the Visible property of the PivotItem class.
Been trying to find a solution but nothing has worked so far.
HTML:
Sub Country()
Sheets("Pivot").Select
With ActiveSheet.PivotTables("Pivottabell4").PivotFields("Country")
.PivotItems("NO").Visible = False
.PivotItems("SE").Visible = True
End With
End Sub