ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   IsDirty (https://www.excelbanter.com/excel-programming/344473-isdirty.html)

AMDRIT

IsDirty
 
How would I know that there are unsaved changes in a workbook?



Jake Marx[_3_]

IsDirty
 
Hi AMDRIT,

AMDRIT wrote:
How would I know that there are unsaved changes in a workbook?


The Saved property of the Workbook object will tell you whether it's "dirty"
or not:

If ActiveWorkbook.Saved Then
'/ no changes have been made
Else
'/ workbook is dirty
End If

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]



AMDRIT

IsDirty
 
Thanks a lot, I missed that property when looking in the intellisense.


"Jake Marx" wrote in message
...
Hi AMDRIT,

AMDRIT wrote:
How would I know that there are unsaved changes in a workbook?


The Saved property of the Workbook object will tell you whether it's
"dirty" or not:

If ActiveWorkbook.Saved Then
'/ no changes have been made
Else
'/ workbook is dirty
End If

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]






All times are GMT +1. The time now is 07:10 AM.

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