Thanks for that but I have that bit in my code. Before l release the com objects I have these statements:
chExcelApplication:DisplayAlerts = FALSE.
chWorkbook:SaveAs (vFileName,,,,,,).
chExcelApplication:Workbooks:CLOSE(vFileName).
chExcelApplication:QUIT().
/* release...