I'm creating an excel dashboard in which I've placed a pivot chart and I want to govern its visibility by the click of a checkbox. I'm not able to identify the pivot chart object on my worksheet and hence can't use the code I can do for any other activeX control like a label. e.g. i can find my label 'lblSales' in the sheet object but I can't find 'pivotChartRC' which is the name of my pivot chart Is there anyway I can do that?
Private Sub checkBoxRC_Click()
If (checkBoxResponseCurve.Value) Then
Sheet1.lblSales.Visible = True
Else
Sheet1.lblSales.Visible = False
End If
End Sub