View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Niklas[_3_] Niklas[_3_] is offline
external usenet poster
 
Posts: 13
Default ThisWorkbook.Saved does not work!

Hi
I have a workbook with 18 sheets and most of the VBA used
by the sheets is refereces to XLA files on the network.
Before the application is closed I want to inform the user
that the workbook is not saved if the user had forgotten
to save the workbook.

When I open the workbook the property ThisWorkbook.Saved =
True, but as soon as I close the Workbook (1 second after
opening) and catches the event Workbook_BeforeClose the
property have been set to False...why??? I do not have any
code in my project setting the property to False...does
anyone know what to do?

Best regards
/Niklas