Range.InsertParagraph method (Word)
Replaces the specified range with a new paragraph.
Syntax
expression. InsertParagraph
expression Required. A variable that represents a Range object.
Remarks
After this method has been used, the range is the new paragraph.
If you don't want to replace the range, use the Collapse method before using this method. The InsertParagraphAfter method inserts a new paragraph following a Range object.
Example
This example inserts a new paragraph at the beginning of the active document.
Set myRange = ActiveDocument.Range(0, 0)
With myRange
.InsertParagraph
.InsertBefore "Dear Sirs,"
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro