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 |