Hi
I'm trying to connect my Pivot table report filter to a corresponding combo box on a front page.
There are five boxes and report filters with matching names, I've tried the following code but I keep getting 'Object doesn't support this property'
Can anyome help?
Sub pivotchoice()
'
' pivotchoice Macro
'
Worksheets("GIFTS").Select
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign").CurrentPage = Worksheets("FrontSheet").CampaignNameGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign_Code").CurrentPage = Worksheets("FrontSheet").CampaignNumGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign_Year").CurrentPage = Worksheets("FrontSheet").CampaignYearGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Can_Mail").CurrentPage = Worksheets("FrontSheet").CanMailGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Can_Phone").CurrentPage = Worksheets("FrontSheet").CanPhoneGCombo.Value
End Sub
I'm trying to connect my Pivot table report filter to a corresponding combo box on a front page.
There are five boxes and report filters with matching names, I've tried the following code but I keep getting 'Object doesn't support this property'
Can anyome help?
Sub pivotchoice()
'
' pivotchoice Macro
'
Worksheets("GIFTS").Select
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign").CurrentPage = Worksheets("FrontSheet").CampaignNameGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign_Code").CurrentPage = Worksheets("FrontSheet").CampaignNumGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Campaign_Year").CurrentPage = Worksheets("FrontSheet").CampaignYearGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Can_Mail").CurrentPage = Worksheets("FrontSheet").CanMailGCombo.Value
ActiveSheet.PivotTables("Gifts").PivotFields("Can_Phone").CurrentPage = Worksheets("FrontSheet").CanPhoneGCombo.Value
End Sub