Hello everybody
Is it possible to save changes to a single sheet when closing the workbook without asking?
If there are any changes to other sheets of the workbook, the notice must appear.
I hope I have explained.
Thank you
Hello everybody
Is it possible to save changes to a single sheet when closing the workbook without asking?
If there are any changes to other sheets of the workbook, the notice must appear.
I hope I have explained.
Thank you
It is not possible to only save changes to 1 sheet - Saving is an all-or-nothing operation.
I appreciate this is a follow-up to another thread of yours so all you can really do is record the fact user X opened the workbook. Do that when the workbook is opened and immediately save again (before any other changes can be made). At least you can record that X opened the workbook but you cannot record that X made changes or when X closed the workbook - To do that you need to save the history in an external file.
Last edited by cytop; 06-15-2022 at 07:37 AM.
Hello,
the macro that saves who opens the workbook in an external file I have it:
but I thought it could also be done in a single file.Please Login or Register to view this content.
the other thead's macro inserts in the workbook whoever opens the file
but if I make changes to the workbook they remain even if I say no to closing.
"...but if I make changes to the workbook they remain even if I say no to closing."
You said much the same in the other thread. In that, you were updating a worksheet and saving the workbook on open; here, you're updating an external file. Either way, you are writing, and committing/saving changes so, of course, they will remain when the workbook is closed. I can't think what it is you actually want to do here.
At closing in the workbook that saves outside there is this
in this workbook if I choose not to make changes they do not remain.Please Login or Register to view this content.
in the other thread with this macro:
the changes always remainPlease Login or Register to view this content.
Would that not be something to do with the fact there a line that saves the workbook?
This
End With
ThisWorkbook.Save '<<<<<<<
ThisWorkbook.Saved = bSaved '<<<<<<<<<<
End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks