View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Izar Arcturus Izar Arcturus is offline
external usenet poster
 
Posts: 24
Default Prompted to save changes after macro save - why?

At the end of the marco I have written for Excel, I have
included code that allows the user to save the file that
has been created. But, after the user saves the file, the
macro ends, and the user goes to close the file that has
just been saved; a dialog box with an alert message
appears asking if you want to save the changes to the file.

If the user does not save the changes to the file(a second
save) then when the file is opened later Excel crashes.
This does not happen in all the macros that I have written
and I have been trying to figure out why it happens with
some but not others.

Does anyone know why this happens? How can I write my code
so that the save executed by the macro is enough?