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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Copying column labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

isacoff

USA
Posts

Posted - 12/06/2005 :  5:33:04 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): OriginPro 7.5 SR4
Operating System: Windows XP

Hi,

I would like to copy a data column from an Origin worksheet _along_ with its corresponding Column Label. How do I do this?

Thanks,
Medha

Mike Buess

USA
3037 Posts

Posted - 12/06/2005 :  6:08:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Medha,

Doesn't sound like you care about the column names so this will copy the third column (and its label) of Data1 to the last column in Data2...

ii = Data2!wks.ncols; // number of cols in Data2
copy %(Data1,3) %(Data2,ii); // copy col 3 of Data1 to col ii of Data2
%L = Data1!wks.col3.label$; // get col 3 label from Data1
Data2!wks.col$(ii).label$ = %L; // set col ii label in Data2

Mike Buess
Origin WebRing Member
Go to Top of Page

isacoff

USA
Posts

Posted - 12/06/2005 :  11:13:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
[quote]
Thanks very much, Mike!!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000