|
楼主 |
发表于 2015-11-11 19:17
|
显示全部楼层
Sub aaa()
'********
End Sub
Sub bbb()
'********
End Sub
---------------139:你只须将前宏末行代码 End Sub 和后宏末行代码 Sub bbb() 删除或注释,即可将两个宏组合在一起,这没有什么技术含量。既然你说我的双引号宏已经OK,你自己组合即可。
你说 1/2/3 三个宏都已经有了?第2个宏英文省略号这个也已经有了?
---------------新宏:
- Sub 英文标点转中文()
- Dim i As Long, a, b
- a = Array(".", ",")
- b = Array("。", ",")
- Do
- Selection.HomeKey Unit:=wdStory
- Selection.Find.ClearFormatting
- Do While Selection.Find.Execute(findtext:=a(i), Forward:=True)
- Selection.MoveStart Unit:=wdCharacter, Count:=-1
- If Selection.Characters.First Like "[!0-9a-zA-Z0-9a-zA-Z]" Then Selection.Characters.Last.text = b(i)
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Loop
- i = i + 1
- Loop Until i = 2
- End Sub
复制代码 |
|