ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Did user Save? (https://www.excelbanter.com/excel-programming/336266-did-user-save.html)

Patti[_2_]

Did user Save?
 
Is there a way to trap whether the user "saved" using the icon, ctrl+s, or
file save? I'd like to set a Boolean if they do.

I'm trying to separate that behavior vs. saying yes to "do you want to save
changes?" when they close a file - is that possible?

Thanks in advance!



Jim Thomlinson[_4_]

Did user Save?
 
Every workbook as a saved property that will tell you if the workbook has
been saved or not. Try this code to see

Sub test()
if ThisWorkbook.Saved = true then
msgbox "Saved"
else
msgbox "Not Saved"
end if
End Sub

--
HTH...

Jim Thomlinson


"Patti" wrote:

Is there a way to trap whether the user "saved" using the icon, ctrl+s, or
file save? I'd like to set a Boolean if they do.

I'm trying to separate that behavior vs. saying yes to "do you want to save
changes?" when they close a file - is that possible?

Thanks in advance!





All times are GMT +1. The time now is 11:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com