Forum Discussion
Nick_Liang
Aug 29, 2024Copper Contributor
[VBA] How to create a PivotTable using an OLEDBConnection whose Data Source is ThisWorkbook
I'm trying to use VBA to create a PivotTable, using an existing WorkbookConnection(OLEDBConnection). Here is what I found: If the "Data Source" of the Connection String is outside ThisWorkbook, the...
galtabat
Jul 25, 2025Iron Contributor
Use VBA's PivotCache.Create to connect to an OLEDB data source and generate a pivot table.