first, please it's KiX.
thus KiXtart...

anyway, at first glance I simply see you missing one endif.

mm...
what comes to not closing...
does it even work with quit right after you have created it?
you can also try (with it, just before):
$objWorkbook.close()

to close the workbook before shutting down the app...

[edit]
reading from your next reply that it actually works.
it just misses that force thingie...

can find it from office's scripting manual...

[ 25. April 2003, 18:44: Message edited by: Lonkero ]
_________________________
!

download KiXnet