Hello -
I found the _BeforeSave handler but I was wondering if there is a
AfterSave handler? I would like to enable some things on my worksheet
if a read-only file was successfully saved as something else. How can
I catch that? I saw that one of the arguments of _BeforeSave deals
with save as and anoter with cancel. The save as makes sense but I
somehow thought that I could catch a Cancel Button push with the second
argument. I guess that's not the way it works because it is a
_BeforeSave handler.
Another thing that I cannot seem to get to work is the Saved property.
I disable some things on one of my sheets if the file was opened in
read-only. I figured that out thanks to some great people here. It
calls a function with the Application.OnTime in the _Open() handler.
So I disable a few things but now Excel thinks that I changed stuff
that needs to be saved! I tried to set ThisWorkbook.Saved = True but
it still prompts me to save the file even though I actually have not
really changed anything.
Thanks so much for you help!
Joe
Bookmarks