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)

方法

属性

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。