Hi All,
I'm tying to set a value of a filter of the pivot A on the same filter of the pivot B. More exactly this is my VBA code.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B2")) Is Nothing Then
If Sheet3.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage <> "(All)" Then
Sheet6.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage = _
Sheet3.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage
End If
End If
End Sub
When I set a value (the same on both pivot tables) in pivot A, I receive this error message
Run-time error '1004':
Unable to set the _Default property of the PivotItem class [End] [Debug] [Help]
Any help will be well appreciated.
Thanks in advance for your king support.
Regards,
Giovanni
I'm tying to set a value of a filter of the pivot A on the same filter of the pivot B. More exactly this is my VBA code.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B2")) Is Nothing Then
If Sheet3.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage <> "(All)" Then
Sheet6.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage = _
Sheet3.PivotTables("PivotTable1").PivotFields("ORG").CurrentPage
End If
End If
End Sub
When I set a value (the same on both pivot tables) in pivot A, I receive this error message
Run-time error '1004':
Unable to set the _Default property of the PivotItem class [End] [Debug] [Help]
Any help will be well appreciated.
Thanks in advance for your king support.
Regards,
Giovanni