To avoid the save dialog, use:
code:
$oXl.DisplayAlerts = 0
$RC = $oXl.Quit

-Erik

You might get som more idaes from my post:
Collection of UDF's for Excel

Sorry i have not made this ready for the UDF-forum. Anyone is welcome

[ 25. April 2003, 19:16: Message edited by: kholm ]