When you are done automating an office program use Marshal.ReleaseComObject to close the program.
oExcel.Quit() Marshal.ReleaseComObject(oExcel) GC.Collect()