For office developers, you might want to check is there any existing active document is opened before you open a document template. What you can do is, check is there any open by using ( Globals .ThisAddIn.Documents.Count > 0). Then close the activeDocument