简体   繁体   English

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

[英]How to automate routine Microsoft Word operations?

For example, I got text document. 例如,我得到了文本文档。 Like so: 像这样:

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.

It is just for example. 仅举例来说。 Our work is to replace bold words with our own that we take from the paper docs. 我们的工作是用纸张文档中的粗体字代替粗体字。 The operation is very routine, you scroll text, find the word, delete it, type in your new word etc. I thought maybe there is a way to automate it? 该操作非常常规,您可以滚动文本,查找单词,删除单词,输入新单词等。我想也许有一种方法可以使它自动化? Maybe with macros or some other mechanism? 也许使用宏或其他某种机制? Microsoft word version is 2000. For example I see it like window where it asks: Enter this: - ok - next window - enter this - and in the end it enters all data into new file. Microsoft Word版本是2000。例如,我在询问该窗口的地方看到它:输入此内容:-确定-下一个窗口-输入此内容-最后,它将所有数据输入到新文件中。

Yes, there is a way. 是的,有办法。 It is called Mail Merge . 它称为邮件合并

yes, you can totally use Word Macros to automate using find and replace.. 1) Record a macro. 是的,您可以完全使用Word宏通过查找和替换来实现自动化。1)记录一个宏。 2) do find and replace 3) stop recording macro 4) look at vb, at a couple of loops if you need, etc. 5) assign macro to function key (it's easy in Excel at least, never had to do with Word) 2)查找并替换3)停止记录宏4)查看vb,如果需要,在几个循环中进行循环操作,等等。5)将宏分配给功能键(至少在Excel中很容易,不必与Word关联)

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

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