Calc GETPIVOTDATA through macro

The question is not on the merits of the problem.