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
 give workbook the name of another workbook

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
Rookie1 Posted - 06/19/2008 : 6:28:24 PM
Origin Version (Select Help-->About Origin): origin 8
Operating System: xp

Hi,
i want to make a script which renames the active workbook to the long name of another workbook in the project.

example:
I have two workbooks:
1. workbook: shortname: book1 longname: MyData1
2. workbook: shortname: F1 longname: Filter1

Now the 2. workbook F1 - Filter1 is active.
I want the script to search for book1 (the 1. workbook) and use the long name of this book1 to rename the active workbook to F1 - MyData1.

It should look for the short name of the 1. workbook, because its long name will be different everytime. But the short name will be always the same.


I have no clue how to rename longnames of workbooks or get longnames of other workbooks. :((

I hope you can help me. Thanks in advance!
2   L A T E S T    R E P L I E S    (Newest First)
Rookie1 Posted - 06/20/2008 : 11:49:20 AM
Hi VincentLiu,
that was exactly what i was looking for :D. Thank you very much!
VincentLiu Posted - 06/19/2008 : 11:55:40 PM
Hi Rookie1,
You may use the following scripts to get you want:

needLongName$ = Book1!page.longname$;
win -rl %H %(needLongName$);


If you still have questions, please feel free to contact us.

Vincent
OriginLab Technical Service Team

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