Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
problems with a localconnection to a cub file
I have tried nearly all combinations I can find of the following. Totally stuck now. I am on excel 2K. Set PC = ActiveWorkbook.PivotCaches.Add(xlExternal) With PC .LocalConnection = "OLEDB;Provider=MSOLAP;Data Source=C:\somefilename.cub" End With PC.UseLocalConnection = True It always fails on the uselocalconnection line. I get an error 1004, app defined or object defined error. All i want to do is open a local cub file and it doesnt seem to work. I notice also that the 'MsgBox (ActiveWorkbook.PivotCaches.Count) gives a value of zero even after the add. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problems with my links to an excel 2007 file from a word 2007 file | Links and Linking in Excel | |||
Problems With PRN File | Excel Programming | |||
Problems opening file | Excel Discussion (Misc queries) | |||
Problems merging an excel file due to code or file problems? | Excel Programming | |||
File Loading Problems | Excel Programming |