Sub 批量添加文本() Dim n As String Dim m As Integer n = InputBox("输入填写的内容", "输入", "标题") m = InputBox("输入需要插入数量", "输入", 10) For i = 1 To m Call 增加标题(n) NextEnd Sub Sub 增加标题(iString As String) Selection.MoveRight Unit:=wdCharacter, Count:=1 Selection.TypeParagraph Selection.TypeText Text:="标题" Selection.TypeParagraphEnd Sub