The following example uses the Close method to close a specified member of the Windows collection.
Application.VBE.Windows(9).Close