Version: Origin 8.0
Programming : Labtalk
Hello,
I want to copy an entire Worksheet into an Excel sheet including the Long Name, Units and Comments rows.
What is working now : with the mouse, I can select the entire worksheet clicking the empty grey cell at (0,0) position, copy it and paste it in an Excel sheet created by the "New Excel" button.
Therefore, an internal command exists in Origin that is able to copy ALL the worksheet in one shot
I want to do that automatically using Labtalk.
The following code works partially :
win -a MySheet;
worksheet -s 1 0 $(wks.ncols) 0;
menu -e 57634; //The copy command in the Edit menu
win -a MyExcelSheet;
excel.runrange(Sheet1,A4);
excel.run(PasteData);
where PasteData is an Excel macro recorded in MyExcelSheet:
Sub PasteData()
ActiveSheet.Paste
End Sub
Of course this code cannot select the Long Name, Units and Comments rows.
How to do this with Labtalk ?
Thank you.