HairyHippy
Programmer
I recorded the following macro:
Yet when it runs it returns a run time error 1004: "Unable to get the pivotfields property of the pivottable class"
Any idea on how to resolve?
TIA
Code:
Sub Macro5()
'
' Macro5 Macro
'
'
ActiveSheet.PivotTables("PivotTable2").PivotFields("Region").PivotFilters.Add _
Type:=xlCaptionBeginsWith, Value1:="ceema"
End Sub
Yet when it runs it returns a run time error 1004: "Unable to get the pivotfields property of the pivottable class"
Any idea on how to resolve?
TIA