没有合适的资源?快使用搜索试试~ 我知道了~
基于VBA的作者查重代码
需积分: 16 6 下载量 166 浏览量
2018-04-12
10:30:12
上传
评论 1
收藏 714B TXT 举报
温馨提示
试读
2页
基于VBA的作者查重代码,高亮显示所有被引用的作者名字
资源推荐
资源详情
资源评论
Sub Macro1()
'
'
MyText1 = "Qin, SP; Qin, Shuping; Hu, CS; Hu, Chunsheng; Oenema, O; Oenema, Oene" '这里用来替换作者
MyArr1 = Split(MyText1, "; ")
lenth = UBound(MyArr1)
Selection.WholeStory
Options.DefaultHighlightColorIndex = wdNoHighlight
Selection.Range.HighlightColorIndex = wdNoHighlight
Do While lenth >= 0
w1 = MyArr1(lenth)
lenth = lenth - 1
Selection.Find.ClearFormatting
With Selection.Find
.Text = w1
.Replacement.Text = ""
.Forward = False
.Wrap = wdFindContinue
End With
Do While Selection.Find.Execute
Selection.Range.HighlightColorIndex = wdRed
Loop
'
'
MyText1 = "Qin, SP; Qin, Shuping; Hu, CS; Hu, Chunsheng; Oenema, O; Oenema, Oene" '这里用来替换作者
MyArr1 = Split(MyText1, "; ")
lenth = UBound(MyArr1)
Selection.WholeStory
Options.DefaultHighlightColorIndex = wdNoHighlight
Selection.Range.HighlightColorIndex = wdNoHighlight
Do While lenth >= 0
w1 = MyArr1(lenth)
lenth = lenth - 1
Selection.Find.ClearFormatting
With Selection.Find
.Text = w1
.Replacement.Text = ""
.Forward = False
.Wrap = wdFindContinue
End With
Do While Selection.Find.Execute
Selection.Range.HighlightColorIndex = wdRed
Loop
资源评论
qq_41981168
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 词根单词 2.2.4 修改版.apk
- 111111111111111111
- 咪视界.apk
- canny-edge-detection.zip
- C语言期末大作业之实现成语连连看.zip
- C语言期末大作业之实现扫雷游戏.zip
- C语言期末大作业之图书信息管理系统实现-基于Dev-C++实现.zip
- tensorflow-rocm-2.13.1.600-cp39-cp39-manylinux2014-x86-64.whl
- tensorflow-gpu-2.7.0-cp39-cp39-manylinux2010-x86-64.whl
- C语言期末大作业之图书信息管理系统实现-基于VivualStudio实现.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功