For information only really...

Been having issues with excel retaining instances of excel when trying to release objects instantiated using createobject.

using the line of code...

if you use xlApp.Visible = True when creating the object, you MUST close the app using the following logic.

xlapp.visible = false
xlapp.quit
set xlapp = nothing