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
 Origin Forum
 Set workbook values?

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
Vilito Posted - 05/15/2012 : 10:57:07 AM
Origin Ver. and Service Release: OriginPro 8.6 (32-bit) sr 1
Operating System: Win7 64bit

I am interested in make absorption measurements, to do that I need to make a simple operation( log(col(a)/col(b)), I am always taking col(a) as reference) this is really easy to do with few columns, the problem is that I have 2000 columns per workbook and 50 different workbooks. Is there anyway to make it?
It will be nice if I can put the generated data in a new workbook to make it more easy-to-use.

Thank you.
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 05/16/2012 : 3:53:53 PM
It isn't clear what you are trying to do, but you can use the csetvalue X-Function to programmatically do what Set Column Values does.

For example:
csetvalue
col:=3
formula:=log(col(1)/col(2))
script:=""
recalculate:=none;

Combine that information with this general loop through all columns in all Worksheets in all Workbooks:
// For all Workbooks
doc -e W
{
// For all Worksheets in current Workbook
loop(iWks,1,page.nlayers)
{
// Make next Sheet active
page.active = iWks;
// For all columns in the active Sheet
loop(iCol,1,wks.ncols)
{
ty %(page.name$), %(layer.name$), %(wks.col$(iCol).name$);
}
}
}
Vilito Posted - 05/16/2012 : 09:01:54 AM
I've been looking on the help window and the only thing similar that I've found is the "Entering Expressions in the Set Column Dialog" topic. However, I haven't succeed. Any suggestions will be more than welcome.

Thank you

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