Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like close all documents that have not been edited.
Can I check if a document was edited in the current session?
Public Sub CloseAllOpenDocuments()
Set oApp = ThisApplication
Dim oDoc As Document
For Each oDoc In ThisApplication.Documents.VisibleDocuments
If Not oDoc.ActivatedObject Is Nothing Then
If .... Then ?
Call oDoc.Close
End If
End If
Next
End Sub
Solved! Go to Solution.