Guy's,

This is my first stab at excel com and I have a question.
When I execute the code below (it uses some UDF's from the link) excel stays open and I'm unable to open the file for writing.
I tried things setting the three vars to 0 or null (empty) but excel is still running when I look at the task manager. What am I missing here?

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


Lounge » RFC: xlLib - Library of MS Excel UDFs


Edited by Mart (2007-08-21 11:39 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.