直播脚本宣传审核丨敏锐词高亮VBA
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">直播脚本<span style="color: black;">通常</span>都非常冗长,审核难度虽然不大,<span style="color: black;">然则</span>非常考验审核人员的<span style="color: black;">连续</span><span style="color: black;">重视</span>力。部分<span style="color: black;">机构</span>不接受第三方审核工具,<span style="color: black;">亦</span>不接受上传云端的在线审核工具,<span style="color: black;">因此</span>只能依靠人工逐字逐句审核。无奈之下,只好依靠word本身的的宏来自动高亮提示<span style="color: black;">敏锐</span>词,以下是一种高亮<span style="color: black;">敏锐</span>词的VBA:<span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">---分割线---<span style="color: black;"></span><span style="color: black;"></span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Sub HighlightWordsWithComments()</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Dim WordsArray As Variant</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Dim i As Integer</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Dim FoundRange As Range</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> 定义您想要高亮的词汇数组</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> WordsArray = Array(<span style="color: black;">"Word1", "Word2", "Word3", "等等"</span>)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> 定义固定的修改意见</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Dim CommentText As String</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> CommentText = "请<span style="color: black;">检测</span>这个词汇的用法。"</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> <span style="color: black;">起始</span>循环遍历<span style="color: black;">每一个</span>词汇</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> For i = 0 To UBound(WordsArray)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Set FoundRange = ActiveDocument.Content</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">FoundRange.Find.ClearFormatting</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> With FoundRange.Find</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .Text = WordsArray(i) 设置<span style="color: black;">查询</span>文本为当前词汇</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .Format = True</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .MatchCase = False 不区分<span style="color: black;">体积</span>写</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .MatchWholeWord = True 只匹配<span style="color: black;">全部</span>词</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">.MatchWildcards = False</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .MatchSoundsLike = False</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> .MatchAllWordForms = False</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> 执行<span style="color: black;">查询</span>并应用高亮格式和添加评论</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Do While .Execute(Forward:=True) = True</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">FoundRange.HighlightColorIndex = wdYellow 设置高亮颜色</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> FoundRange.Comments.Add Range:=FoundRange, Text:=CommentText</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> FoundRange.Collapse Direction:=wdCollapseEnd</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Loop</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> End With</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> Next i</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">End Sub</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">----分割线----</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">详细</span>操作<span style="color: black;">过程</span>:</span><span style="color: black;"><span style="color: black;">怎样</span>添加宏到 Word:</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1 按下 </span><span style="color: black;">Alt + F11</span><span style="color: black;"> 打开 VBA 编辑器。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2 在项目浏览器中,找到当前的文档,<span style="color: black;">而后</span>右键点击“Microsoft Word 对象”下的 "ThisDocument",<span style="color: black;">选取</span>“<span style="color: black;">插进</span>” -> “模块”。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3 在新模块的大窗口中粘贴上面的代码。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">4 关闭 VBA 编辑器,并<span style="color: black;">保留</span>文档。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">5 <span style="color: black;">能够</span><span style="color: black;">经过</span>按 </span><span style="color: black;">Alt + F8</span><span style="color: black;"> <span style="color: black;">选取</span>和运行宏来执行它。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">标红的<span style="color: black;">“word”</span><span style="color: black;">能够</span>搜索<span style="color: black;">平常</span>的<span style="color: black;">敏锐</span>词,如绝对化用语、公序良俗词,<span style="color: black;">亦</span><span style="color: black;">能够</span><span style="color: black;">按照</span><span style="color: black;">制品</span>品类添加<span style="color: black;">详细</span>的类别,<span style="color: black;">例如</span>医疗用语、<span style="color: black;">打扮</span>品行业特有词库等。以<span style="color: black;">打扮</span>品为例,以下为<span style="color: black;">平常</span>的<span style="color: black;">敏锐</span>词(来自网络,仅供参考):</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">国家级、世界级、宇宙级、<span style="color: black;">全世界</span>级、最高级、特级、顶级、冠级、至尊、最佳、最好、第<span style="color: black;">1、</span>最...之<span style="color: black;">1、</span>首创、最新创造、最新发明、最新科学、最高技术、最先进加工工艺、最先进制法、Max、Top;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">100%安全、99.99%有效、零<span style="color: black;">包袱</span>、纯天然**、纯自然、零添加、无添加、无副<span style="color: black;">功效</span>、纯植物、生态、<span style="color: black;">敏锐</span>、纳米、有机、包治百病、根治;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">无与伦比、无可比拟、完美、独特、独一无<span style="color: black;">2、</span>神奇、从未有过的、极致、长效、全天候、特效、<span style="color: black;">有效</span>、全效、强效、奇效、速效、超强、全面的、全方位、再生、超凡、抗疲劳。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">中医、西医、中西医结合、内科、外科、妇科、五官科、眼科、皮肤科、牙科、中药、中草药、西药、药方、汉方、韩方、藏方、苗方、蒙方、维方、古方、秘方、验方、祖方、单方、复方、方剂、处方药用、<span style="color: black;">药品</span>等;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">炎症、湿疹、皮肤发炎、荨麻疹、消化不良、糖尿病、血糖血脂、干眼症、飞蚊症、视觉<span style="color: black;">阻碍</span>、甲状腺、内分泌、代谢<span style="color: black;">错乱</span>、器官、衰竭、感染、病、症、疾、疾患、癌、瘤、功能<span style="color: black;">阻碍</span>、患处、医疗、医治、治疗、就诊、诊断、诊治、治愈、<span style="color: black;">恢复</span>、病变、妊娠纹、妊娠斑、黄褐斑、病理性脱发、斑秃、全秃、普秃、疤、瘢、疹、疮、疔、疥、疖、痈、癣、炎、伤、痛、肿、脓、疱、痉挛、抽搐、酒糟鼻、脚气、感染、止脱、生发、毛发再生、净斑、红斑、红肿、关节痛、冻疮、刀伤、烧伤、烫伤、疮痈、毛囊炎、皮肤感染、病毒、细菌(致病菌)、真菌(致病菌)、免疫、临床、经××例临床观察<span style="color: black;">拥有</span><span style="color: black;">显著</span>效果、皮肤科<span style="color: black;">大夫</span>或眼科<span style="color: black;">大夫</span>、医护人员专用<span style="color: black;">叫作</span>谓(如<span style="color: black;">大夫</span>、医师、<span style="color: black;">医生</span>、中医、军医、药师、郎中、护士等)、过敏性、中枢神经、细胞再生能力、细胞活力、细胞增殖和分化、细胞修复、有效刺激重要的细胞再生及新陈代谢、免疫力、基因、因子、干细胞、干扰素、毛细血管、淋巴、红血丝、肌底、生长因子、激素、荷尔蒙、抗生素、雌性激素、雄性激素、燃烧脂肪、瘦身、瘦脸、瘦腿、减肥、瘦、塑型、塑形、专业(染发、烫发;美甲<span style="color: black;">制品</span>除外)、净脂、清脂、吸脂、燃脂、溶脂、丰乳、丰胸、使乳房<span style="color: black;">饱满</span>/坚挺、预防乳房松弛下垂、胸部美形;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">体检、化验、B超、CT、验血、透射、处方、开放、抗病毒、手术、手术名<span style="color: black;">叫作</span>、注射、化疗、理疗、<span style="color: black;">恢复</span>训练、整形、微整、整肤、换肤、高渗透、透皮、激活、活细胞、抗氧、热能、透活、微导;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">退烧、退热、止痛、止咳、解毒、消炎、抗炎、活血、祛瘀、抗敏、脱敏、防敏、斑立净、无斑、防止黑斑、消除斑点、去除雀斑、祛风、祛红、治疗斑秃、逐层<span style="color: black;">衰退</span>多种色斑、祛疤、祛瘀、<span style="color: black;">制品</span>对人体有抗菌、抑菌、除菌、灭菌、防菌、杀菌、愈合、消毒、除蟎、杀蟎、止脱、抗衰老、抗老化、补肾、补血、活血、除湿、排毒、解毒、调节内分泌、吸附铅汞、生肌、祛寒、通脉、行气、益气、理气、除湿、润燥、镇定、镇静;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">名医的名字</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">药物</span>名<span style="color: black;">叫作</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">药妆、医学护肤品,修复;</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">返老还童、延年益寿、<span style="color: black;">白头</span>变黑、齿落更生、防老抗癌、祖传秘方、宫廷秘方。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">*以上内容仅供参考,不承担任何责任,请<span style="color: black;">即时</span>做好备份或副本。</span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span><span style="color: black;"></span></p>
我完全同意你的看法,期待我们能深入探讨这个问题。 这夸赞甜到心里,让我感觉温暖无比。 “BS”(鄙视的缩写) 可以发布外链的网站 http://www.fok120.com/ 外贸B2B平台有哪些? 外链发布社区 http://www.fok120.com/ 你的见解真是独到,让我受益匪浅。
页:
[1]