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
 copy columns with formulas
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

martin12

Switzerland
Posts

Posted - 08/30/2004 :  09:34:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.03
Operating System: Windows XP

I have a project with lots of similar data sheets with identical column headers. I want to apply the same new calculations in new columns to all of these data sheets. Now my question is: Is there a way to copy columns from one worksheet to another including the formulas used to calculate the columns and the column headers?

Thanks, Martin

easwar

USA
1965 Posts

Posted - 08/30/2004 :  11:57:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Martin,

If you get the free SR4 patch (and the up to date help files for SR4) for your Origin 7.0 version, you will have programmatic access to getting, setting and excuting column formula from Origin C with methods such as GetFormula, SetFormula and ExecuteFormula. Also Origin C has access to getting and setting other column properties.

However, a better approach for you could be to create a custom worksheet template. You would then set up all column properties including formulae, and then save that worksheet setting as a template. Then you could create instances of that worksheet template and bring in different data such as from external files using import. If you need help with creating and using templates, please post.

Easwar
OriginLab

Go to Top of Page

martin12

Switzerland
Posts

Posted - 08/31/2004 :  02:00:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Easwar

Thanks for your help. I know about templates, but my problem is that I already have all the worksheets, and I have quite some graphs already linked to these worksheets. So I don't want to make a new ws for every dataset and copy all the data, because then I either have to change all the links in the graphs or I end up with a double-size file.
Is it possible to apply a template to an already existing worksheet?

Cheers, Martin
Go to Top of Page

easwar

USA
1965 Posts

Posted - 08/31/2004 :  09:59:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Martin,

Templates are used to create new instances of objects (such as graphs and wks), and cannot be applied to already existing object.

So in your case, you will need to programmatically copy and apply settings either using LabTalk or Origin C.

If you need help with that, either post in the OC/LT forums, or send your OPJ with details to tech@originlab.com - if you send e-mail, then please refer to this forum post.

Easwar
OriginLab


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