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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 set position index for worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

razva

Germany
Posts

Posted - 08/26/2010 :  1:22:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

applenano

China
9 Posts

Posted - 08/27/2010 :  05:29:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

razva

Germany
Posts

Posted - 08/27/2010 :  11:00:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you for your support
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000