用宏吧,更容易一些。 请参: '* +++++++++++++++++++++++++++++
'* Created By I Love You_Word!@ExcelHome 2005-5-11 17:41:56
'仅测试于System: Windows NT Word: 10.0 Language: 2052
'^The Code CopyIn [ThisDocument-ThisDocument]^'
'* -----------------------------Sub Example()
Dim i As Paragraph, N As Byte, P As Integer
With Selection
If .Type = wdSelectionIP Then Exit Sub
On Error Resume Next
Application.ScreenUpdating = False
N = InputBox("请输入起始编号")
For Each i In .Paragraphs
i.Range.InsertBefore N
N = N + 2
Next
End With
Application.ScreenUpdating = True
End Sub
'----------------------可根据情况,自己修改一下,要求,先选定某一栏,或者某一栏中的部分段落 |