简体   繁体   English

在Excel中显示的OLAP多维数据集连接

[英]OLAP cube connection displayed in Excel

I am creating a pivot table in Excel 2010 using a connection to an OLAP cube. 我正在使用与OLAP多维数据集的连接在Excel 2010中创建数据透视表。

I am trying to figure out how to have the path and file name of the cube and the last refreshed date/time to be displayed and printed into the Excel sheet. 我试图弄清楚如何显示多维数据集的路径和文件名以及上次刷新的日期/时间以显示并打印到Excel工作表中。

Basically, the same information that is displayed in the Workbook Connections (under the data tab) to be printed within the sheet where the pivot table is located. 基本上,在“工作簿连接”中(在“数据”选项卡下)中显示的相同信息将打印在数据透视表所在的工作表中。

Is there a way to do this? 有没有办法做到这一点?

Thanks! 谢谢!

This will print all of the connection names to the debug window. 这会将所有连接名称打印到调试窗口。

Dim conn As WorkbookConnection
For Each conn In ActiveWorkbook.Connections
   Debug.Print conn.Name
Next conn

Similarly, you can display information on the sheet. 同样,您可以在工作表上显示信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM