Intercepting Save button on Recovered UnsavedFile banner

Add-in Express™ Support Service
That's what is more important than anything else

Intercepting Save button on Recovered UnsavedFile banner
Tim Farrelly

Posts: 12
Joined: 2020-08-05

Is there a way to intercept the click of the save button that appears on the yellow banner that displays for a recovered unsaved file?

Specifically the question is for Word. The banner reads as "RECOVERED UNSAVED FILE This is a recovered file that is temporarily stored on your computer. [Save]".

Posted 26 Sep, 2022 02:08:16 Top
Andrei Smolin

Add-in Express team

Posts: 18420
Joined: 2006-05-11
Hello Tim,

The Word object model doesn't provide a way to achieve this.

If the crash is caused by your add-in you should investigate it: collect debug messages - say, using DebugView - locate the call(s) causing the crash, and wrap it in a try/catch block.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Sep, 2022 04:24:47 Top