插入文本居中对齐

Insert text with center align

我正在使用此方法添加文本,但它是左对齐的。 如何让它成为文档的中心?

With ActiveDocument.Content
    .InsertAfter "hello world!"
End With

新的段落是文件的最后一个>>使用.paragraphs.last

Sub test()

With ActiveDocument.Content
    .InsertParagraphAfter     'to be safe that new content is on its own para = last para of document
    .InsertAfter "hello world!"
    .Paragraphs.Last.Range.ParagraphFormat.Alignment = wdAlignParagraphCenter
End With

End Sub
``