RulerGuides.Application 屬性 (Publisher)RulerGuides.Application property (Publisher)

無物件辨識符號時,此屬性會傳回**Application** 物件,代表目前的 Publisher 執行個體。When used without an object qualifier, this property returns an Application object that represents the current instance of Publisher.

物件辨識符號搭配使用時,此屬性會傳回代表指定之物件的建立者的 Application 物件。When used with an object qualifier, this property returns an Application object that represents the creator of the specified object.

若與 OLE Automation 物件一起使用,則會傳回物件的應用程式。When used with an OLE Automation object, it returns the object's application.

語法Syntax

運算式應用程式expression.Application

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

範例Example

在這個範例中,會顯示 Publisher 的版本及組建資訊。This example displays the version and build information for Publisher.

With Application 
 MsgBox "Current Publisher: version " _ 
 & .Version & " build " & .Build 
End With

在這個範例中,會顯示在使用中出版物第一頁上建立每一個連結 OLE 物件的應用程式名稱。This example displays the name of the application that created each linked OLE object on page one of the active publication.

Dim shpOle As Shape 
 
For Each shpOle In ActiveDocument.Pages(1).Shapes 
 If shpOle.Type = pbLinkedOLEObject Then 
 MsgBox shpOle.OLEFormat.Application.Name 
 End If 
Next

支援和意見反應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.