Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following code:
Public Sub ResetFilters() Dim pvtTable As PivotTable Dim pvtField As PivotField Dim pvtItem As PivotItem Set pvtTable = ActiveSheet.PivotTables("afsct") For Each pvtField In pvtTable.PivotFields pvtField.AutoSort xlManual, pvtField.SourceName For Each pvtItem In pvtField.PivotItems If Not pvtItem.Visible Then pvtItem.Visible = True Next pvtField.AutoSort xlAscending, pvtField.SourceName Next End Sub This gives an error 1004 on the line with pvtField.AutoSort: Door de toepassing of door object gedefinieerde fout (by the application or by object defined error) When I comment the two pvtField.AutoSort lines, I get an error 1004: Eigenschap Visible van klasse PivotItem kan niet worden ingesteld. (property Visible of class PivotItem cannot be set) What am I missing here? -- Amedee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to set the visible property of the PivotItem class | Excel Programming | |||
Error:Unable to set the visible property of the PivotItem class. | Excel Programming | |||
PivotItem.Visible | Excel Programming | |||
how to set pivotitem.visible property to true | Excel Programming | |||
How can I set PivotItem.Visible property to True? | Excel Programming |