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
 Copying Excel Data

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
alex_eagle Posted - 10/14/2002 : 08:27:51 AM
I want to copy Excel-data into a datasheet simply by
strg+c and strg+v ! How can I tell origin to take the first
row of the data automatically as column-name ?

Thanx
Alex


1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 10/15/2002 : 1:46:49 PM
There is no option to tell Origin to use the first row of data as column name - whether from the Clipboard or in any worksheet.
The following script is adapted from my AddOn Tools at http://www.originlab.com/www/downloads/addon_modules/index.cfm :

loop(jj,1,wks.ncols) { // Loop through all columns
wks.col$(jj).name$=%(%H,jj,1); // Column names from row 1
}
mark -d %(%H,1) -b 1 -e 1; // Delete the first row

Note that there are internal routines that check to make sure names are valid. Invalid characters will be stripped from candidate names. If a name conflicts with an existing name, then it will not be used. For this reason, you may want to remove the line that deletes the first row.


Edited by - greg on 10/15/2002 1:48:18 PM

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