When a file is saved (on purpose) I would like to perform a certain action.
This all works with the following code:
Application.DocumentBeforeSave += new word.ApplicationEvents4_DocumentBeforeSaveEventHandler(ThisAddIn_BeforeSave);
There is only one problem, this event also fires when a change is made to the document and the 'Autorecover' function saves this change.
Is there a way to circumvent this action or at least detect if it was an auto-save?
So I've managed to find the answer to this question on this site. Essentially, this makes use of the VBA properties of a Word application I assume.
This solution seems to work for office 2007 and up.