Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet that has 25 pivot tables and I have to recreate
this report every few months with a new data set. I would like to be able to reassign the ODBC driver with a macro but when i record the macro it stops recording when i enter the microsoft query editor. Does anyone have a macro that would let me reassign all these pivot tables at once rather than replacing them manually? Right now I chance the the table the pivot table is reading from withing the same driver. If it helps I could the table name the same create a new driver. Thanks in advance, Paul Lambson |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Record the macro and then replace the Command Text data with the SQL from the
query editor by cutting the data from the query editor and pasting it into your macro. You may have to make some minor edits after pasting the string. "Paul Lambson" wrote: I have a worksheet that has 25 pivot tables and I have to recreate this report every few months with a new data set. I would like to be able to reassign the ODBC driver with a macro but when i record the macro it stops recording when i enter the microsoft query editor. Does anyone have a macro that would let me reassign all these pivot tables at once rather than replacing them manually? Right now I chance the the table the pivot table is reading from withing the same driver. If it helps I could the table name the same create a new driver. Thanks in advance, Paul Lambson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with SQL and ODBC Text Driver | Excel Programming | |||
Excel ODBC Driver with ADO | Excel Programming | |||
ODBC Driver/Import Data | Excel Discussion (Misc queries) | |||
which odbc excel driver is the best? | Excel Programming | |||
ODBC driver file path | Excel Programming |