Catch the save event

N

neoret

Hello

When the user presses the save button I want my Add-inn to catch that
event.


I think I need to use the Microsoft.Office.Tools.Word.SaveEventHandler
but cant get the namespace right. I only hav Microsoft.Office.Interop
and Microsoft.Office.Core - not Microsoft.Office.Tools......


I installed the VSTO but are not sure how this works.


Does any of you have any experience with this?


neoret
 
D

Doug Robbins - Word MVP

If you create a macro with the same name as one of the Word commands, that
macro will run in place of the command.

Therefore, you need macros with the names

FileSave()

and

FileSaveAs()

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top