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
 Repetitive operations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JonasKlim

Lithuania
36 Posts

Posted - 10/14/2017 :  08:32:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I have written a "X" script to modify worksheet. Now I want to repeat this script on several sheets with known names (let's say SH1, SH2, SH3)without copying the "X" script.
I a way to do this in LT?

Jonas

cpyang

USA
1406 Posts

Posted - 10/14/2017 :  7:02:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use LabTalk functions.

CP
Go to Top of Page

nick_n

Finland
125 Posts

Posted - 10/15/2017 :  11:57:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If your sheets in one book you can use "page.active" http://www.originlab.com/doc/LabTalk/ref/Page-obj
If your sheets in different books see http://www.originlab.com/doc/LabTalk/guide/Looping-Over-objs
Best regards,

Nikolay
Go to Top of Page

JonasKlim

Lithuania
36 Posts

Posted - 10/16/2017 :  04:23:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Nikolay,
http://www.originlab.com/doc/LabTalk/guide/Looping-Over-objs is exactly what I need.
Thank you for the help again.
Best regards,
Jonas
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