I use D7 to write an application to read a Excel file and extract some content and insert into SQL database. Everything is fine but I don't know how to end the Excel in the application. I examine with task manager and find several 'EXCEL.EXE'.
I use the follow statement to create the oleobject
if opendialog.Execute then begin
myexcel := createoleobject('excel.application');
Then how do I close/free the object?