Section 对象 (Publisher)
表示出版物或文档的一部分。
备注
使用 Sections.Item (索引) (其中 index 是索引号)可返回单个 Section 对象。
使用 Sections.Add (StartPageIndex) (其中 StartPageIndex 是页面的索引号)返回添加到文档的新节。 如果页面已包含节头,则返回“权限被拒绝”错误。
示例
以下示例将 Section 对象设置为活动文档的 Sections 集合中的第一节。
Dim objSection As Section
Set objSection = ActiveDocument.Sections.Item(1)
以下示例将 Section 对象添加到活动文档的第二页。
Dim objSection As Section
Set objSection = ActiveDocument.Sections.Add(StartPageIndex:=2)
方法
属性
- Application
- ContinueNumbersFromPreviousSection
- PageNumberFormat
- PageNumberStart
- Parent
- ShowHeaderFooterOnFirstPage
- StartPageIndex
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈