Export (0) Print
Expand All

Application.Application Property

Office 2007
Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application.

Syntax

expression.Application

expression   A variable that represents an Application object.

Example
This example displays the version and build information for Publisher.

Visual Basic for Applications
With Application
    MsgBox "Current Publisher: version " _
        & .Version & " build " & .Build
End With
This example displays the name of the application that created each linked OLE object on page one of the active publication.
Visual Basic for Applications
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



Community Additions

ADD
Show:
© 2015 Microsoft