简体   繁体   中英

Office Add-in to execute on save

I'm developing an Office 2007 add-in. 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).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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