Loop through the Documents : Documents « Word « VBA / Excel / Access / Word
- VBA / Excel / Access / Word
- Word
- Documents
Loop through the Documents
Sub forEach()
Dim Doc As Document
For Each Doc In Documents
Doc.Close SaveChanges:=wdSaveChanges
Next
End Sub
Related examples in the same category