PivotFormula.Application 屬性 (Excel)PivotFormula.Application property (Excel)

無物件辨識符號時,此屬性會傳回代表 Microsoft Excel 應用程式的**Application** 物件。When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application.

在搭配物件限定詞使用的情況下,這個屬性會傳回 Application 物件,代表特定物件的建立者 (您可將此屬性搭配 OLE Automation 物件使用,以傳回該物件的應用程式)。When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). 唯讀。Read-only.

語法Syntax

運算式應用程式expression.Application

_運算式_代表**PivotFormula** 物件的變數。expression A variable that represents a PivotFormula object.

範例Example

本範例會顯示一個有關建立 myObject 之應用程式的訊息。This example displays a message about the application that created myObject.

Set myObject = ActiveWorkbook 
If myObject.Application.Value = "Microsoft Excel" Then 
 MsgBox "This is an Excel Application object." 
Else 
 MsgBox "This is not an Excel Application object." 
End If

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.