|
Sub dm1()
ActiveDocument.Content.ListFormat.ConvertNumbersToText
ActiveDocument.Content.Find.Execute FindText:="^t", ReplaceWith:="", Replace:=wdReplaceAll
ActiveDocument.Content.Find.Execute FindText:=ChrW(32) & "{1,}(□)", ReplaceWith:="^t\1", Replace:=wdReplaceAll, MatchWildcards:=True
With ActiveDocument.Content.Find
.MatchWildcards = True
'Do While .Execute("^13[0-9]{1,}[、.]")
Do While .Execute("□")
With .Parent
'.Start = .Start + 1
.ParagraphFormat.TabStops.ClearAll '清空之前的所有制表位
.ParagraphFormat.TabStops.Add CentimetersToPoints(14), wdAlignTabLeft, wdTabLeaderSpaces
.Start = .End
End With
Loop
End With
End Sub
|
|