Finally MRComObject(range) MRComObject(sheet) MRComObject(sheets) MRComObject(book) MRComObject(books) If app IsNot Nothing Then app.Quit() End If MRComObject(app) End Type