共用方式為


PivotCache.OLAP 屬性 (Excel)

如果樞紐分析表快取已連接到線上分析處理 (OLAP) 伺服器,則會傳回 True。 唯讀的 Boolean

語法

表達。奧拉普

代表 PivotCache 物件的變數。

範例

此範例會判斷快取連線是否為 OLAP 伺服器。 假設使用中工作表上有一個樞紐分析表。

Sub CheckPivotCache() 
 
 ' Determine if PivotCache has OLAP connection. 
 If Application.ActiveWorkbook.PivotCaches.Item(1).OLAP = True Then 
 MsgBox "The PivotCache is connected to an OLAP server" 
 Else 
 MsgBox "The PivotCache is not connected to an OLAP server." 
 End If 
 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應