DEFINE VARIABLE chWorkSheet3 AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE chWorkSheet4 AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE chExcelApplication AS COM-HANDLE NO-UNDO.
CREATE "Excel.Application" chExcelApplication.
ChExcelApplication:VISIBLE = TRUE.
chWorkbook = chExcelApplication:Workbooks:ADD.
chWorkSheet = chExcelApplication:Sheets:Item(1).
chWorkSheet2 = chWorkbook:Worksheets:ADD().
chWorkSheet2 = chExcelApplication:Sheets:Item(2).
chWorkSheet3 = chWorkbook:Worksheets:ADD().
chWorkSheet3 = chExcelApplication:Sheets:Item(3).
chExcelApplication:Sheets:Item(2):name = "1 day Late".
chExcelApplication:Sheets:Item(3):name = "2 days Late".
chWorkSheet4 = chWorkbook:Worksheets:ADD().
chWorkSheet4:MOVE(,chWorkSheet3).
chWorkSheet4 = chExcelApplication:Sheets:Item(4).
just make sure this line right after the add line
move(,...(some worksheet)) --> place after some worksheet
move(...(some worksheet),) --> place before some worksheet