VB.NET Code:
  1. Private _word As Word.Application
  2.  
  3. ...
  4. ' Get or create Word application object
  5. _word = ...
  6. AddHandler _word.DocumentBeforeSave, AddressOf DocumentBeforeSave
  7. ...
  8.  
  9. Private Sub DocumentBeforeSave(Doc As Word.Document, ByRef SaveAsUI As Boolean, ByRef Cancel As Boolean)
  10.     Debug.Print(Doc.Name)
  11.     Cancel = False
  12. End Sub