![]() |
Track if any changes made after file opened
Hello,
I have a template file which has vb codes, user forms. I want to activate one of the user forms if no change has made after excel file opened, or deactivate if any changes made after excel file opened. Is there any way I can track that? Thanks, sermest |
Track if any changes made after file opened
If Not ActiveWorkbook.Saved Then MsgBox "This workbook contains unsaved changes." Else MsgBox "No Unsaved Changes" End If Can use ThisWorkbook.Saved. Also the property can be set to True so that you can exit without saving or getting an Alert message. -- Regards, OssieMac |
All times are GMT +1. The time now is 10:31 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com