Hi,
I feel a littile bit confused. Do you wanna copy data from one Origin project to another or an Excel file?
If latter, you can refer to this example below:
//Please make sure Excel is running
//idExcel can be any names you like, it just an identifier
dde -c excel|sheet1 idExcel;
//copy Origin project data [Book1]Sheet1!1[1:32] to the first column of Excel file
dde -pc idExcel R1C1:R32C1 [Book1]Sheet1!R1C1:R32C1;
More info please refer to:
https://www.originlab.com/doc/LabTalk/ref/DDE-cmd
Regards, Yuki
OriginLab