ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Check if workbook has been changed (https://www.excelbanter.com/excel-programming/296894-re-check-if-workbook-has-been-changed.html)

Jake Marx[_3_]

Check if workbook has been changed
 
Hi Yong,

Yong wrote:
How to check if the opened workbook has been changed since last
opened programmatically?


The Saved property of the Workbook object will tell you whether it is
"dirty" or not.

If wb.Saved Then
'/ no changes since last save
Else
'/ changes have been made
End If

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

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



All times are GMT +1. The time now is 10:03 PM.

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