Close Method Example
The following example closes all open non-hidden documents, saving changes without prompting the user.
Application.Documents.Close 1, 2
The following example opens the DocumentTestPicture and then closes it without saving any changes.
Dim iDoc As Object
Set iDoc = Application.Documents.open("C:\Program Files (x86)\Proficy\iFIX\pic\testpicture.grf")
iDoc.Close 2, 1