|
139:你加的符号只有一种:齐线墨点(.),它是全角的中文标点,要用软键盘才能输入,现在去除了;顿号也变为宋体。
- Sub 黑圈123加顿号()
- Dim i As Long
- i = 9312
- Do
- Selection.HomeKey Unit:=wdStory
- Selection.Find.ClearFormatting
- Do While Selection.Find.Execute(findtext:=ChrW(i), Forward:=True)
- Do
- Selection.MoveEnd Unit:=wdCharacter, Count:=1
- If Selection.Characters.Last.text = vbCr Then Exit Do
- Loop Until Selection.Characters.Last.text <> ChrW(160) And Asc(Selection.Characters.Last) <> 9 And _
- Selection.Characters.Last Like "[! ,..,。]"
- Selection.MoveEnd Unit:=wdCharacter, Count:=-1
- Selection = Replace(Selection, ChrW(160), "")
- Selection = Replace(Selection, " ", "")
- Selection = Replace(Selection, " ", "")
- Selection = Replace(Selection, Chr(9), "")
- Selection = Replace(Selection, ",", "")
- Selection = Replace(Selection, ".", "")
- Selection = Replace(Selection, ".", "")
- Selection = Replace(Selection, ",", "")
- Selection = Replace(Selection, "。", "")
- Selection.MoveEnd Unit:=wdCharacter, Count:=1
- If Selection.Characters.Last.text = "、" Then
- Selection.Characters.Last.Delete
- Else
- Selection.MoveEnd Unit:=wdCharacter, Count:=-1
- End If
- Selection.InsertAfter text:="、"
- Selection.Characters.Last.Font.Name = "宋体"
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Loop
- i = i + 1
- If i = 9352 Then i = 9450
- If i = 9451 Then i = 10102
- If i = 10132 Then i = 12832
- If i = 12842 Then i = 12928
- If i = 12938 Then End
- Loop
- End Sub
复制代码
|
|