问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

word用VBA快速输入拼音

发布网友 发布时间:2024-09-03 11:18

我来回答

1个回答

热心网友 时间:2024-10-10 03:34

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub

热心网友 时间:2024-10-10 03:34

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub

热心网友 时间:2024-10-10 03:34

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub

热心网友 时间:2024-10-10 03:34

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub

热心网友 时间:2024-10-10 03:34

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub

热心网友 时间:2024-10-10 03:35

输入时输入对应的元音加声调,然后利用VBA统一替换,这样速度快多了。
如:she1ng dia4o
选中后,运行下面的宏就可得到:
shēng diào
对于有时要输入小学语文类的拼音尤其有用。可以考虑把这个宏放到对应的模板中。
VBA代码如下:
Dim findarr, replacearr
Dim i As Long
Application.ScreenUpdating = False
findarr = Array("a1", "a2", "a3", "a4", _
"o1", "o2", "o3", "o4", _
"e1", "e2", "e3", "e4", _
"i1", "i2", "i3", "i4", _
"u1", "u2", "u3", "u4", _
"v1", "v2", "v3", "v4")
replacearr = Array("ā", "á", "ǎ", "à", _
"ō", "ó", "ǒ", "ò", _
"ē", "é", "ě", "è", _
"ī", "í", "ǐ", "ì", _
"ū", "ú", "ǔ", "ù", _
"ǖ", "ǘ", "ǚ", "ǜ")
For i = 0 To UBound(findarr)
With Selection.Find
.Execute findarr(i), MatchWildcards:=False, Format:=False, replacewith:=replacearr(i), Replace:=wdReplaceAll
End With
Next
Application.ScreenUpdating = True
End Sub
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
少儿学什么舞蹈 青年学什么舞蹈好 成年人学什么舞蹈 福州企业最低工资标准 2013年厦门的底薪是多少 生产要素的需求有哪些性质 生产要素的需求有何特点? 什么是生产要素需求 微观经济学要素需求什么是条件要素需求?它和要素需求有什么不同?_百度... 养宠物的人遵守规则,是不是就能和别人平安相处呢? 天逸功放和钟神功放哪个音质好 派出所抓嫖罚款多少合理? 派出所如何对卖淫嫖娼人员实施处罚 哪个台晚会有李现 了解一下李现的作品情况 人死了欠信用卡的钱还需要还吗 死亡后信用卡欠的钱就不用还了吗 农行网点副主任2014年述廉述职报告 阳虚吃药的吃点什么菜 小孩吃鱿鱼后半小时能吃药吗? ...已治好,只是还在吃药期间,能不能吃鱿鱼呢?谢谢帮忙,急。_百度知 ... word如何取消打印备注区域 拆图员是做什么的 卖瓷砖的开场白话术是什么 夹层未融合是什么意思? 我是O型血,老婆B型,孩子血液会融合吗? ?新生儿26天黄疸正常值 云顶之弈铂金能4排吗 红米手机休眠设置在哪里 红米RedmiK70Pro息屏时间在哪修改红米RedmiK70Pro息屏时间修改方法【详... 药理学名词解释整理 美国重启经济会带来什么后果? 化妆品国货品牌有哪些 国货化妆品哪个好 超出预产期5天的危害 我都超过预产期一个星期了,还没发动,我好紧张啊,晚上都睡不着,我该怎 ... 超出预产期还没生怎么办 预产期超出六天了 怎么还不出来 急死了_百度拇指医生 超出预产期多少天属于正常 三国志14威力加强版建造箭楼是靠什么:箭楼建造方法详解 三国志14 箭楼可以造山上? 三国志14打箭楼用什么阵型 三国志14全谋略政策效果分享介绍_三国志14全谋略政策效果分享是什么_百 ... 五颜六色的彩虹像什么一样什么造句 冰凌花蜂王浆不宜人群 冰凌花的功效与作用是什么?冰凌花又有哪些禁忌呢? 平心而论和凭心而论有什 请问是内退的工资高还是病退的工资高? 遭受到家庭暴力该怎么办? 婚姻中遭遇家暴该怎么保护自己 家暴未成年申请保护令流程有哪些