View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Prevent save when content change?

Hi
then put the following in the workbook_beforesave event:

Cancel=true


BUT: all the user has to do to prevent this is disable macros. Why not
save the file as read-only (with password)


--
Regards
Frank Kabel
Frankfurt, Germany


Nick wrote:
the point is i really don't user to save the file, any method?

thanks

Frank Kabel wrote:

Hi
one way: put the following in the workbook_beforeclose event:

activeworkbook.saved = true