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
Origin Forum
"set column values" for only one in two columns
New Topic
Reply to Topic
Printer Friendly
Author
Topic
lenfant
France
Posts
Posted - 06/09/2017 : 05:03:18 AM
Hi,
How to apply automatically a same function on columns in a worksheet, but only for the columns 1,3,5...2n+1?
An idea?
Thanks
Regards,
Stf
AmandaLu
439 Posts
Posted - 06/09/2017 : 06:33:56 AM
Hi,
Please try labtalk script.
for(ii=1;ii<=wks.ncols;ii+2)
{
range aa = %(ii);
csetvalue col:=aa formula:="int(rnd()*100)";
}
Here is the document of cstvalue X-Function:
http://www.originlab.com/doc/X-Function/ref/csetvalue
Thanks,
Amanda
OriginLab Technical Service
lenfant
France
Posts
Posted - 06/09/2017 : 08:04:46 AM
Perfect!
Thanks,
Stf
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000