Brad,
You da man. I thought setting it to 0 or null would do the trick but it didn’t. $excel.quit works great.
Almost ashamed to say that with 2k3+ posts I just started using com a few weeks ago

Witto,
There is no need to make it visible (yet). But it's good to know that it is possible for stuff still to come in the future. For now I just need to create the workbook with x amount of sheets with the sheet(s) having a specific name.

 Code:
$excel = xlInstantiateApp() ;initiate excel
$workbook = xlNewBook($excel, 4) ;create excel file with 4 sheets.
$save = xlFile($excel, 1, "c:\testsheetnew1.xls") ;save excel file
$excel.quit


Edited by Mart (2007-08-21 01:46 PM)
Edit Reason: Added working code and ripped out a typo.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.