Publisher (的 ParagraphFormat.Duplicate 方法)
會為指定的 ParagraphFormat 物件建立複本,然後傳回新的 ParagraphFormat 物件。
語法
運算式。重複
表達 代表 ParagraphFormat 物件的 變數。
傳回值
ParagraphFormat
範例
以下範例複製使用中出版物第一頁上圖案一中文字範圍的段落格式資訊,然後套用至圖案二中的文字範圍。
Dim pfTemp As ParagraphFormat
With ActiveDocument.Pages(1)
Set pfTemp = .Shapes(1).TextFrame _
.TextRange.ParagraphFormat.Duplicate
.Shapes(2).TextFrame _
.TextRange.ParagraphFormat = pfTemp
End With
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。