|
* demo text:
Ядрол
ық/сн.
999,8
65
30,503
Яки
/шл.
82
999,904
504
777
767
Ядро
лы&79;/сн.
99,8
6
30
503
- Sub a825_Russian_Numbers()
- Dim i As Paragraph
- With ActiveDocument
- .Content.Font.ColorIndex = wdAuto
- .Content.Find.Execute "^l", , , 0, , , , , , "^p", 2
- .Select
- CommandBars.FindControl(ID:=122).Execute
- CommandBars.FindControl(ID:=123).Execute
-
- For Each i In .Paragraphs
- If Asc(i.Range) = 13 Then i.Range.Delete
- Next
- For Each i In .Paragraphs
- If Not i.Range Like "#*" Then i.Range.Font.ColorIndex = wdPink
- Next
- With .Content.Find
- .ClearFormatting
- .Font.ColorIndex = wdPink
- .Text = ""
- .Forward = True
- .MatchWildcards = True
- Do While .Execute
- With .Parent
- If .Text Like "*[!.]?" And .Next(4, 1) Like "*.?" Then
- .Characters.Last.Delete
- End If
- .MoveEnd 4
- .Start = .End
- End With
- Loop
- End With
- .Content.Font.ColorIndex = wdAuto
- With .Content.Find
- .ClearFormatting
- .Text = "^13[0-9,^13]{1,}"
- .Forward = True
- .MatchWildcards = True
- Do While .Execute
- With .Parent
- .MoveStart
- If .Paragraphs.Count > 3 Then .Font.Color = wdColorRed
- .Start = .End
- End With
- Loop
- End With
- End With
- Selection.HomeKey 6
- End Sub
复制代码 |
|