View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ian M Ian M is offline
external usenet poster
 
Posts: 8
Default Auto Close function in Excel

I wish a message box to appear before closing an Excel Workbook,
however I have tried (in the "THIS WORKBOOK" object:

Private Sub Workbook_BeforeClose()

MsgBox "This document is now CLOSING."

End Sub

And also:

Workbook_Close

Auto_Close, none of which appear to work.

Any ideas?

Thanks

Ian M