Thread: code for saving
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Abdul Salam[_3_] Abdul Salam[_3_] is offline
external usenet poster
 
Posts: 8
Default code for saving

Sub Auto_Close()
ThisWorkbook.Saved = True
ThisWorkbook.Close
End Sub


Abdul Salam

-----Original Message-----
Hi,
how can i produce a code that when the program excel ask
me i want to save the file when i exit "don't save" and
close it.
Regards
Pier
.