|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub lkyy()
Dim doc As Document, tb As Table, tbs As String
Set doc = ActiveDocument
For Each tb In doc.Tables
c = tb.Rows.Count
For i = 2 To c Step 2
For j = 1 To 2
n = n + 1
tb.Cell(i, j).Range.Find.Execute "([0-9]{1,2}).", , , 1, , , , , , n & ".", 1
Next
Next
Next
End Sub
For Each tb In doc.Tables
c = tb.Rows.Count
For i = 2 To c Step 2
For j = 1 To 2
n = n + 1
'tbs = Replace(Replace(tb.Cell(i, j).Range.Text, Chr(7), ""), Chr(13), "")
tb.Cell(i, j).Range.Find.Execute "([0-9]{2}).", , , 1, , , , , , n & ".", 1
Next
Next
Next
End Sub |
评分
-
1
查看全部评分
-
|