Word) (Footnotes 物件

代表選取範圍、範圍或檔中所有註腳的 Footnote 物件集合。

註解

使用 Footnotes 屬性可傳回 Footnotes 集合。 下列範例會將使用中文件內的所有註腳都變更為章節附註。

ActiveDocument.Footnotes.SwapWithEndnotes

使用 Add 方法可將註腳新增至 Footnotes 集合。 下列範例會緊接在選取範圍之後新增註腳。

Selection.Collapse Direction:=wdCollapseEnd 
ActiveDocument.Footnotes.Add Range:=Selection.Range , _ 
 Text:="The Willow Tree, (Lone Creek Press, 1996)."

使用 註腳 (索引) ,其中 index 是索引編號,可傳回單一 Footnote 物件。 索引編號代表選取範圍、 範圍或文件中的註腳的位置。 下面範例紅色將格式套用至選取範圍中第一個註腳。

If Selection.Footnotes.Count >= 1 Then 
 Selection.Footnotes(1).Reference.Font.ColorIndex = wdRed 
End If

注意事項

[!注意事項] 位於文件或章節結尾的註腳視為章節附註,而且都包含在 Endnotes 集合。

方法

名稱
Add
Convert
Item
ResetContinuationNotice
ResetContinuationSeparator
ResetSeparator
SwapWithEndnotes

屬性

名稱
Application
ContinuationNotice
ContinuationSeparator
Count
Creator
位置
NumberingRule
NumberStyle
Parent
Separator
StartingNumber

請參閱

Word 物件模型參考資料

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應