多种对象 FootnoteOptions |
该对象代表指定给文档中脚注的某区域或所选内容的属性。
使用 Range 或 Selection 对象可返回一个 FootnoteOptions 对象。使用 FootnoteOptions 对象可为文档的不同区域指定不同的脚注属性。例如,可将长文档说明部分的脚注用小写字母显示,而将文档中其余部分的脚注用星号显示。下列示例使用 NumberingRule、NumberStyle 和 StartingNumber 属性设置活动文档中第一节的脚注格式。
Sub BookIntro()
Dim rngIntro As Range
'Sets the range as section one of the active document
Set rngIntro = ActiveDocument.Sections(1).Range
'Formats the EndnoteOptions properties
With rngIntro.FootnoteOptions
.NumberingRule = wdRestartPage
.NumberStyle = wdNoteNumberStyleLowercaseLetter
.StartingNumber = 1
End With
End Sub