Hi Jonas,
I am not sure if I understand your question fully. I suppose you want to get the workbook name and then rename the worksheet name with a string that includes workbook name.
You can refer to this simple example:
//Create a new workbook
newbook;
//Get the workbook name
string wn$ = page.name$;
//Active worksheet by index
page.active = 1;
//Rename the active worksheet
wks.name$ = wn$ + “Sheet1”;
More information about Workbook and Worksheet, please go through these pages:
http://www.originlab.com/doc/LabTalk/guide/Basic-Workbook-Operation
http://www.originlab.com/doc/LabTalk/guide/Worksheet-Basic-Operation
Hope it helps.
Regards,
Yuki
OriginLab