To close a specific document, you can close the active document or you can specify a document name: : Word Document « Word « VBA / Excel / Access / Word
To close a specific document, you can close the active document or you can specify a document name:
Sub main()
Dim wdApp As Word.Application
Set wdApp = GetObject(, "Word.Application")
wdApp.ActiveDocument.Close
'or
wdApp.Documents("Arrays.docx").Close
End Sub