PivotChart FilterPane in XL2010

Sandeep Warrier

Well-known Member
Joined
Oct 31, 2008
Messages
2,680
Hey All,

In Excel 2010, at times, on selecting a PivotChart, the Filter Pane is not visible. I need it to be visible at all times. For this I have a Worksheet_Activate code.

However, this workbook may be used in other versions of Excel too, and so I tried

Code:
Private Sub Worksheet_Activate()
    Dim chrtDashboard As ChartObject
    On Error Resume Next
        If CDbl(Application.Version) > 12 Then
            For Each chrtDashboard In shtDashboard.ChartObjects
                With chrtDashboard.Chart
                    .ShowAllFieldButtons = True 'Error here
                    .ShowReportFilterFieldButtons = True 'Error here
                End With
            Next chrtDashboard
        End If
    On Error GoTo 0
End Sub

In older versions of Excel, this errors out saying method not supported. I would have thought On Error Resume Next would take care of any error, but it seems to not do so.

Any ideas/suggestions?

Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top