View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Charlotte E[_2_] Charlotte E[_2_] is offline
external usenet poster
 
Posts: 38
Default how to avoid user to save in .xlsx


You could make the 'BeforeSave' event force-save the workbook as .XLSm, set
Cancel = True after the saving is done, and perhaps let a MsgBox inform the
user that the workbook was saved as .XLSm instead of .XLSx

CE



"Mathieu936" skrev i en meddelelse
...
On 26 juil, 20:03, Don Guillett Excel MVP
wrote:

Look in the ThisWorkbook module for before save and stop it within
that.- Masquer le texte des messages précédents -


I tried it but the BeforeSave event happens before saving. So I could
popup a message box saying to not save in .xlsx, but after user could
save in .xlsx which is bad.