简体   繁体   English

如何制作一个可以在 MS Word 中为段落插入 html 标签的宏?

[英]How to make a macro that can insert html tags for paragraphs in MS Word?

I have no experience in using vba.我没有使用 vba 的经验。 I am not a programmer.我不是程序员。 I have been writing articles in word and submitting them to a website where they require paragraphs to be enclosed by html tags.我一直在用 word 写文章并将它们提交到一个网站,在那里他们需要用 html 标签将段落括起来。

I tried to make a macro that would insert these tags at the beginning and end of each paragraph but failed.我试图制作一个宏,可以在每个段落的开头和结尾插入这些标签,但失败了。 I tried to do that by imitating other people's codes.我试图通过模仿其他人的代码来做到这一点。

您可以使用一个宏来查找段落的开头和结尾,然后替换任何代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM