(Publisher) 的應用程式物件
代表 Microsoft Publisher 應用程式。 Application 物件包含的屬性和方法會傳回最上層物件。 例如, ActiveDocument 屬性會傳回 Document 物件。
註解
在 Publisher 中使用 Microsoft Visual Basic for Applications 時,可以使用 Application 物件的所有屬性和方法,而不需要 Application 物件辨 識符號。 例如,只須輸入 ActiveDocument.PrintOut,不必輸入 Application.ActiveDocument.PrintOut。
不含 Application 物件辨 識符號即可使用的屬性和方法會被視為 全域。 若要在物件瀏覽器中檢視全域屬性和方法,請選擇 <globals>
[ 類別 ] 方塊中的清單頂端。
若要從非 Publisher 專案中存取 Publisher 物件模型,則所有屬性和方法都必須使用完整名稱。
使用 應用程式 傳回 Application 物件的屬性。
範例
下列範例會顯示應用程式名稱。
Sub ShowAppName()
MsgBox Application.Name
End Sub
事件
- AfterPrint
- BeforePrint
- DocumentBeforeClose
- DocumentOpen
- HideCatalogUI
- MailMergeAfterMerge
- MailMergeAfterRecordMerge
- MailMergeBeforeMerge
- MailMergeBeforeRecordMerge
- MailMergeDataSourceLoad
- MailMergeDataSourceValidate
- MailMergeGenerateBarcode
- MailMergeInsertBarcode
- MailMergeRecipientListClose
- MailMergeWizardFollowUpCustom
- MailMergeWizardStateChange
- NewDocument
- Quit
- ShowCatalogUI
- WindowActivate
- WindowDeactivate
- WindowPageChange
方法
- CentimetersToPoints
- ChangeFileOpenDirectory
- EmusToPoints
- Help
- InchesToPoints
- IsValidObject
- LinesToPoints
- MillimetersToPoints
- NewDocument
- Open
- PicasToPoints
- PixelsToPoints
- PointsToCentimeters
- PointsToEmus
- PointsToInches
- PointsToLines
- PointsToMillimeters
- PointsToPicas
- PointsToPixels
- PointsToTwips
- Quit
- ShowWizardCatalog
- TwipsToPoints
屬性
- ActiveDocument
- ActiveWindow
- Application
- Assistance
- AutomationSecurity
- 組建
- CaptionStyles
- ColorSchemes
- COMAddIns
- CommandBars
- 文件
- FileDialog
- InsertBarcodeVisible
- InstalledPrinters
- 語言
- 名稱
- OfficeDataSourceObject
- 選項
- Parent
- Path
- PathSeparator
- PrintPreview
- ProductCode
- ScreenUpdating
- Selection
- ShowFollowUpCustom
- SnapToGuides
- SnapToObjects
- TemplateFolderPath
- ValidateAddressVisible
- 版本
- WebOptions
- WizardCatalogVisible
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。