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
 Column label
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

srira

India
Posts

Posted - 08/12/2006 :  12:16:14 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):6.1
Operating System:XP
Hi
Is there a way to copy the column labels too when we move data from one worksheet to another?

Mike Buess

USA
3037 Posts

Posted - 08/12/2006 :  2:02:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can create buttons that run these CopyDataAndLabels and PasteDataAndLabels script sections. See your Origin and LabTalk help files for instructions on creating custom toolbars.

[CopyDataAndLabels]
if( 10&wks.sel!=10 ) {
type -b Select whole columns.;
return;
};
%Z="";
loop(i,wks.c1,wks.c2) {
%A=wks.col$(i).label$; // copy label
if(i==wks.c1) %Z=%A;
else %Z=%Z|%A;
};
menu -e 57634; // run Edit > Copy

[PasteDataAndLabels]
if( 10&wks.sel!=10 ) {
type -b Select whole columns.;
return;
};
menu -e 57637; // run Edit > Paste
if( %Z=="" ) return;
loop(i,wks.c1,wks.c2) {
wks.col$(i).label$=%[%Z,#i-wks.c1+1,|]; // paste label
};

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/12/2006 2:07:07 PM
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