Paul,
tmpsheet = getObject('','excel.application')
xlApp = tmpsheet.application
.
.
.
xlApp.quit
Release xlApp
Release tmpsheet
HTH
Barbara
>i have a vfp program that launces an instance of excel in the background, so i don't even make it visible.
>
>after i close my program, the excel session is still running. it doesn't seem to matter if i reference excel with a variable or an object property.
>
>i can't figure how to close excel???
>
>thanks for any help,
>
>pbd