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
 Create User Defined Parameters

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
DrMK Posted - 03/24/2020 : 06:37:42 AM
Origin 2019b (32-bit)
9.6.5.169
Copyright © 1991-2019 OriginLab Corporation
Windows 10

Hello,

i would like to create User Defined Parameters for selected Sheets in a workbook.

I found the option

wks.labels(*D1);

which works fine but it just creates a parameter for the active sheet.

Is there any possibility to create parameters in more selected sheets?

It would also work if there is a possibility to create them for all sheets in a book.

Thank you for your help!

Matej
3   L A T E S T    R E P L I E S    (Newest First)
DrMK Posted - 03/24/2020 : 10:03:57 AM
quote:
Originally posted by YimingChen

Hi,

To run script on certain worksheet. try the following script:

layer -o [Book1]Sheet1 {
       wks.labels(*D1);
};


To loop all worksheets in current workbook and run the script:

doc -e LW {
	wks.labels(*D1);
}


James



Both works fine! Thank you!

Matej
YimingChen Posted - 03/24/2020 : 08:24:33 AM
Hi,

To run script on certain worksheet. try the following script:

layer -o [Book1]Sheet1 {
       wks.labels(*D1);
};


To loop all worksheets in current workbook and run the script:

doc -e LW {
	wks.labels(*D1);
}


James
DrMK Posted - 03/24/2020 : 08:14:14 AM
I found by myself a solution while testing some scripts.

With

loop (ii, 4, page.nlayers)
{page.active=$(ii); wks.labels(*D1); wks.UserParam1$ = "xxx"; };


I am creating for sheet 4 until last sheet (page.nlayers), for each sheet a parameter and rename it "xxx".






Matej

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