简体   繁体   English

Office加载项在保存时执行

[英]Office Add-in to execute on save

I'm developing an Office 2007 add-in. 我正在开发Office 2007加载项。 I would like to have a piece of code execute whenever the user Saves a document. 每当用户保存文档时,我都希望执行一段代码。 I'm principally interested in Word, Excel and PowerPoint, but I'd prefer to also support other Office apps (such as Visio and Microsoft Project). 我主要对Word,Excel和PowerPoint感兴趣,但是我也希望支持其他Office应用程序(例如Visio和Microsoft Project)。

Looking for either a code sample, or a link to an article that describes the basic steps to perform. 寻找代码样本或描述执行基本步骤的文章链接。 Thanks in advance! 提前致谢!

Getting closer. 越来越近。 Apparently what I want is the DocumentBeforeSave event 显然我想要的是DocumentBeforeSave事件

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

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