Publisher) (TextStyle.NextParagraphStyle 屬性
會傳回或設定 String ,代表當使用者按下 Enter 時,所指定文字樣式後面的段落樣式。 讀取/寫入。
語法
運算式。NextParagraphStyle
表達 代表 TextStyle 物件的變數。
傳回值
字串
範例
本範例會建立新的文字樣式,並指定遵循新文字樣式的文字樣式為 [一般] 樣式。
Sub CreateNewTextStyle()
Dim styNew As TextStyle
Dim fntStyle As Font
Set styNew = ActiveDocument.TextStyles.Add(StyleName:="Heading 1")
Set fntStyle = styNew.Font
With fntStyle
.Name = "Tahoma"
.Bold = msoTrue
.Size = 15
End With
With styNew
.Font = fntStyle
.NextParagraphStyle = "Normal"
End With
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。