Hi,
Please refer to the following example for adding the sheet1 in the Book1 if there is not a "sheet1" in the Book1.
win -a Book1; //Active a workbook with short name Book1
if(exist("[Book1]sheet1!")==0)
{
newsheet name:=sheet1;
}
OriginLab
Jacqueline