Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've been using ODBC for external data sources to pivot tables. I would now
like to switch to using ADO. With ODBC, the code looks like: With ActiveWorkbook.PivotCaches.Add(SourceType:=xlExter nal) .Connection = Array("ODBC;DSN=MyDSN;;;;;DATABASE=MyDatabase;") .CommandType = xlCmdSql .CommandText = Worksheets("SQL1").Range("A100").Value .CreatePivotTable TableDestination:="R8C1", TableName:= _ "PivotTable1" End With How could I do the same with ADO? TIA, Wolfie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Building pivot tables in Excel 2007 based on existing pivot tables? | Excel Discussion (Misc queries) | |||
Pivot Table Data Adding contents of two pivot tables and param que | Excel Discussion (Misc queries) | |||
Average Calculations from Pivot Tables - Get Pivot Data? Calc Fiel | Excel Worksheet Functions | |||
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. | Excel Discussion (Misc queries) | |||
Pivot tables-controlling user interaction with pivot tables | Excel Programming |