Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating local cube using PivotTable
I tried to write a macro while creating a local cube, and Excel wrote this
VB-code: With ActiveSheet.PivotTables("Table1").PivotCache .LocalConnection = _ "OLEDB;Provider=MSOLAP;Data Source=C:\test.cub;Initial Catalog=Test" .UseLocalConnection = True End With But when I tried to execute this macro, there was an "Application defined or object defined error". The cube was created but had no data. First question: why? Second question: if I will not create a microcube using this method, what can I do to create a local cube in VBA from existing PivotTable? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 - Local Cube - Pivot Table | Excel Discussion (Misc queries) | |||
Creating a PivotTable w/o selecting data in an existing PivotTable | Excel Discussion (Misc queries) | |||
Importing local OLAP cube in Excel 2007 | Excel Worksheet Functions | |||
How to sort a PivotTable based on OLAP Cube by one of the data fi. | Excel Programming | |||
Invoking Local Cube Wizard | Excel Programming |