thanks tamar - that works perfectly.
k
>>Does anyone know the code line to detect extra sheets in excel automation?
>>
>>I have the second part.
>>
>>oExcel.Sheets("sheet2").Delete
>>
>>thanks k
>
>
>* This assumes that oExcel is the workbook, not Excel itself
>if oExcel.Sheets.Count > 1
>
>
>Tamar