I can get my PivotTable data into a recordset from an external database. OK.
I'm looking for the minimal code required to create a PivotTable with this data.
Say, on "Sheet1", at "A1", with Page Fields "CustomerType" and "Country", Row Field "Customer", Values "Count of Shops".
Thanks.
(I tried recording a macro but translating it to datasource = recordset is where I'm stuck)
It would be helpful if you provide sample workbook.