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
 Formating columns

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
JonasKlim Posted - 11/22/2017 : 04:58:31 AM
Hi,

I want to copy read numbers from text sting and write them into a cell. The numbers read are like "050", "150", etc. I need data in numeric format, like 50, 150 (omitting first 0).
I try to format column for data with command wks.col(E).format= 1;
Still, the numbers are written like text 050, 150, ...
If I make manual formatting (Properties -> Format), the format is "Text & Numeric". After changing to "numeric" I get correct format 50, 150.
How to make the same with script?

Best regards,
Jonas
2   L A T E S T    R E P L I E S    (Newest First)
JonasKlim Posted - 11/22/2017 : 05:35:51 AM
Hi Echo,

Thank you, it works.

Regards,
Jonas
Echo_Chu Posted - 11/22/2017 : 05:10:48 AM
Hi, Jonas

Please use

wks.col5.format=1;


to set the column format, instead of wks.col(E).format= 1

Echo
OriginLab Technical Support

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