ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivots using other pivots and dynamic query problem (https://www.excelbanter.com/excel-programming/281823-pivots-using-other-pivots-dynamic-query-problem.html)

lc

Pivots using other pivots and dynamic query problem
 
Hi,

I have one PivotTable that gets refreshed by macro using cell values. New
query (from sql server) is loaded into PivotCache.CommandText. This works
just fine.

Since the query can be quite lengthy (wouldn't want to fire it twice to
present 2 views), I created another PivotTable that uses the former one as a
source. Well. now assigning PivotCache.CommandText no longer works with 1004
error.

Does anyone have any idea what might be the problem? (Using 2003)

TIA

lc




All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com