应用程序对象 (发布服务器)
表示 Microsoft 发布服务器应用程序。 应用程序 对象包含的属性和方法返回顶级对象。 例如, ActiveDocument 属性返回 文档 对象。
备注
在 Publisher 中使用 Microsoft Visual Basic for Applications时,可以在不使用 Application 对象限定符的情况下使用 Application 对象的所有属性和方法。 例如,只需键入 ActiveDocument.PrintOut 而不必键入 Application.ActiveDocument.PrintOut。
可以在不使用 Application 对象限定符的情况下使用的属性和方法被视为 全局属性和方法。 若要查看对象浏览器中的全局属性和方法,请在 <globals>
“ 类 ”框中选择列表顶部。
从非 Publisher 项目中访问 Publisher 对象模型时,所有的属性和方法都必须完全限定。
使用 应用程序 返回 应用程序 对象的属性。
示例
下面的示例显示了应用程序的名称。
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
- 应用程序
- 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈