Hi,
I am writing a code in VBA using getpivotdata function. It is working fine untill the value does not exist.
Dim pt As PivotTable
Sheets("Pivot2").Select
Set pt = ActiveSheet.PivotTables(1)
Cells(2,1).Value = pt.GetPivotData("ID", "GCB", "1", "Gender", "F", "9 box...