2

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!

1 Answer 1

1

Getting closer. Apparently what I want is the DocumentBeforeSave event

Sign up to request clarification or add additional context in comments.

2 Comments

... which can be [handled in C#][2] 2: social.msdn.microsoft.com/forums/en-US/vsto/thread/…
this page explains how to hook DocumentBeforeSave for Word 2007: msdn.microsoft.com/en-us/library/cc442946.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.