The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Use book name in sheet name

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
JonasKlim Posted - 10/21/2017 : 05:42:43 AM
Hello,
What operators to use to get book name and include book name in worksheet name?

Jonas
2   L A T E S T    R E P L I E S    (Newest First)
JonasKlim Posted - 10/26/2017 : 05:04:36 AM
Hello Yuki,
Thank you - this is exactly what I needed.
Regards,
Jonas

yuki_wu Posted - 10/23/2017 : 02:25:05 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000