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
 set position index for worksheet

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
razva Posted - 08/26/2010 : 1:22:53 PM
Origin Ver. and Service Release (Select Help-->About Origin): V8.0 SR0
Operating System:XP

anybody knows how to move a worksheet inside a workbook by using a script?

i tried to treat it as a layer but it seems it is not working.
i have a workbook containing several datasets with the names Aii. the workbooks are indexed with ascending numbers but some of the worksheets are missing (eg. A1, A2, A7, A9 etc.) i want to create a loop which will check if Aii is present, else a new worksheet is created then it should be activated and then moved to the corresponding position in the workbook. i use this script to create and activate the layer but i cannot move the newly created empty workbook from the last position.

newsheet n:=A$(ii) c:2; book$(jj)!page.active$ = "A$(ii)"; book$(jj)!page.reorder($(ii))


does anybody have a suggestion?

regards
2   L A T E S T    R E P L I E S    (Newest First)
razva Posted - 08/27/2010 : 11:00:07 AM
thank you for your support
applenano Posted - 08/27/2010 : 05:29:47 AM
Hi razva,
Thank you for contacting us. There are some bugs with the page.reorder() method in Origin 8.0. But they have been fixed in Origin8.1. If you are interested, you can download a free demo of Origin 8.1 and try:
http://www.originlab.com/index.aspx?go=Downloads/OriginEvaluation

Best regards
Yours sincerely
Alex
OriginLab Technical Services


OriginLab Technical Services

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