我有這個代碼
word_fichier_template.Tables(1).Range.Copy
'Pasting the table in every section of my document
With word_fichier.Sections(1).Footers(wdHeaderFooterPrimary).Range
.Collapse wdCollapseStart
.Paste
End With
'Working fine, pasting the table in the second section
word_fichier_template.Tables(2).Range.Copy
With word_fichier.Sections(2).Headers(wdHeaderFooterPrimary).Range
.Collapse wdCollapseStart
.Paste
End With
我想在 .docx 的頁眉和頁腳中復制/粘貼表格,我不明白我在代碼中注釋的內容。我還嘗試Headers(wdHeaderFooterFirstPage).Range將表格放在第一頁/部分但不起作用。這是我的話的一個例子。

uj5u.com熱心網友回復:
您的頁腳已鏈接 - 請參閱頁腳右上角的標簽 - “Identique au précédente”。關閉該設定,第 2 節中的頁腳將與第 1 節不同。

要在部分的第一頁上獲得不同的頁腳,您需要更改頁面布局中的設定。

轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/487657.html
