繁体   English   中英

如何自动执行常规的Microsoft Word操作?

[英]How to automate routine Microsoft Word operations?

例如,我得到了文本文档。 像这样:

At around 6am last Bank Holiday **Monday** I was called by our **Australian** news desk who informed me of the news. Stumbling from my bed to the lounge, still half asleep and with the remnants of an enjoyable **Sunday evening** taking revenge on my skull, I was struggling to process the notion of putting one foot in front of the other let alone news that the world's most **notorious terrorist** had been killed.

仅举例来说。 我们的工作是用纸张文档中的粗体字代替粗体字。 该操作非常常规,您可以滚动文本,查找单词,删除单词,输入新单词等。我想也许有一种方法可以使它自动化? 也许使用宏或其他某种机制? Microsoft Word版本是2000。例如,我在询问该窗口的地方看到它:输入此内容:-确定-下一个窗口-输入此内容-最后,它将所有数据输入到新文件中。

是的,有办法。 它称为邮件合并

是的,您可以完全使用Word宏通过查找和替换来实现自动化。1)记录一个宏。 2)查找并替换3)停止记录宏4)查看vb,如果需要,在几个循环中进行循环操作,等等。5)将宏分配给功能键(至少在Excel中很容易,不必与Word关联)

暂无
暂无

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

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