|
*** 139:有三个问题!一是像 ⒗⒃这样的字符,不是组合的,是一个字符,所以它后面加顿号不合适;二是顿号非要宋体吗?因为前面的符号是 MS Gothic(非要宋体也是可以的,但我建议默认 MS Gothic 就可以了);三是我又改动了一下《黑圈1加顿号》宏,黑圈1后面可以有若干空格,并且后面有 ,.,。都自动删除:
- 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 Asc(Selection.Characters.Last) = 13 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.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.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
复制代码 |
|