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
 How to set column as x or y

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
country_road Posted - 08/16/2010 : 2:27:42 PM
Origin Ver8.1. and SP3 (Select Help-->About Origin):
Hi,

How to set any(one) column as X (or Y)? Let's say I try to set Book1, sheet1, column D as x and column E ax Y. How can I do it by script?

Thanks,

Steve
4   L A T E S T    R E P L I E S    (Newest First)
country_road Posted - 08/16/2010 : 5:46:58 PM
It works again.

Thanks.
larry_lan Posted - 08/16/2010 : 5:35:59 PM
How about using range variable:

range rr = !col(b);
rr.type = 4;

Larry
country_road Posted - 08/16/2010 : 4:40:40 PM
Thank you so much Larry. It works.

Is there any way that I can use column name (like column D) rather than the column index? There are too many columns (hundreds of), and some times I have difficulty to figure out the column index.

Thanks again,

Steve
larry_lan Posted - 08/16/2010 : 4:11:06 PM
Use the Wks.col object.

wks.coln.type = 4; // Set as X
wks.coln.type = 1; // Set as Y

where n is the index of column.

Thanks
Larry
OriginLab Technical Services

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