Share via


Application Property [Publisher 2003 VBA Language Reference]

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. Read-only.

expression.Application

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example displays the version and build information for Publisher.

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.

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

Applies to | Adjustments Object | AdvancedPrintOptions Object | Application Object | BorderArt Object | BorderArtFormat Object | BorderArts Collection | CalloutFormat Object | CatalogMergeShapes Collection | Cell Object | CellBorder Object | CellRange Collection | ColorCMYK Object | ColorFormat Object | ColorScheme Object | ColorSchemes Collection | ColorsInUse Collection | Column Object | Columns Collection | ConnectorFormat Object | Document Object | Documents Collection | DropCap Object | Field Object | Fields Collection | FillFormat Object | FindReplace Object | Font Object | FreeformBuilder Object | GroupShapes Collection | HeaderFooter Object | Hyperlink Object | Hyperlinks Collection | InlineShapes Collection | Label Object | Labels Collection | LayoutGuides Object | LineFormat Object | LinkFormat Object | MailMerge Object | MailMergeDataField Object | MailMergeDataFields Collection | MailMergeDataSource Object | MailMergeFilterCriterion Object | MailMergeFilters Collection | MailMergeMappedDataField Object | MailMergeMappedDataFields Collection | MasterPages Collection | ObjectVerbs Collection | OLEFormat Object | Options Object | Page Object | PageBackground Object | Pages Collection | PageSetup Object | ParagraphFormat Object | PhoneticGuide Object | PictureFormat Object | Plate Object | Plates Collection | PrintablePlate Object | PrintablePlates Collection | PrintableRect Object | ReaderSpread Object | Row Object | Rows Collection | RulerGuide Object | RulerGuides Collection | ScratchArea Object | Section Object | Sections Collection | Selection Object | ShadowFormat Object | Shape Object | ShapeNode Object | ShapeNodes Collection | ShapeRange Collection | Shapes Collection | Stories Collection | Story Object | Table Object | TabStop Object | TabStops Collection | Tag Object | Tags Collection | TextEffectFormat Object | TextFrame Object | TextRange Object | TextStyle Object | TextStyles Collection | ThreeDFormat Object | View Object | WebCheckBox Object | WebCommandButton Object | WebHiddenFields Collection | WebListBox Object | WebListBoxItems Object | WebNavigationBarHyperlinks Object | WebNavigationBarSet Object | WebNavigationBarSets Collection | WebOptionButton Object | WebOptions Object | WebPageOptions Object | WebTextBox Object | Window Object | Wizard Object | WizardProperties Collection | WizardProperty Object | WizardValue Object | WizardValues Collection | WrapFormat Object