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
 Changing the active book

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
hasdur Posted - 03/15/2012 : 06:41:44 AM
Hi,

I'm looking for a way to change the active book. I program some script, but my first issue is when I need a newbook, the newone became active. In this way, the end of my script can't be effective in the first book.

To summarize, I'm looking for a way to create a newbook and let the first book active, or choose the active book.

Thanks for your help
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 03/22/2012 : 12:45:32 PM
just a tip for readers of this thread who might be interested in....

If you want to make a new workbook with the same structure to the original - with same number of sheets, sheet names, column names comments, etc., maybe the just the following two lines may be quickest and easiest:

save -t %H %Y\temp;
win -t wks %Y\temp;

--Hideo Fujii
OriginLab
Penn Posted - 03/15/2012 : 09:16:31 AM
Hi,

You can use the script below:

string firstBookName$ = %H;  // get the name of current book
newbook;  // create a new book
win -a %(firstBookName$);  // activate the first book


Penn

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