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
 How to automatize a function (Copy/paste 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
Snapshot83 Posted - 04/29/2019 : 05:12:47 AM
Hi,

I would like to learn how I can automatize a function (something like "batch processing"). I have an huge file with different folders and for each of them I need to copy/paste some columns in a new sheet. Up to now I have to repeat the operation n-times for each folder, due to the fact that I am not able to do it in some "custom" or automatic way. I either don't know if it is possible to do that as I wish and for this reason I am here asking for your help. Any suggestion ? Thanks in advance.

Origin 2018b b.9.5.5.409 (Academic)
Operating System:Windows 10
3   L A T E S T    R E P L I E S    (Newest First)
Chris D Posted - 05/02/2019 : 08:54:18 AM
Hi Snapshot83,

My interpretation of your question is:
1. You have a big project file with many folders.
2. I assume you have many workbooks in each folder.
3. Each workbook may contain one or more worksheets.
4. For each worksheet in each workbook in each folder (essentially all worksheets in the project), you want to copy some columns to a new worksheet.

Is that correct?

My question(s):
1. Is the new worksheet one single worksheet with all the copied columns from the entire project?

or

2. One new worksheet for each folder?

or

3. One new worksheet for each individual workbook in project?

or

4. One new worksheet for each individual worksheet in project?


The solution would seem to lie in creating an appropriate LabTalk script to automate this.



Thanks,
Chris Drozdowski
Originlab Technical Support
cpyang Posted - 05/01/2019 : 4:21:13 PM
quote:
Originally posted by Snapshot83

... I have an huge file with different folders ...


You mean an OPJ file right?
And you would like to be able to select datasets from such an OPJ and do further processing right?

This is basically why we created Origin Connector, which allows one OPJ to connect to data in another OPJ so the data are not duplicated.

CP
YimingChen Posted - 04/30/2019 : 09:16:45 AM
Hi,

If you want to select common columns of each sheet to copy over, you may try Append Worksheet tool. Select from menu Worksheet: Append Worksheet.... In the dialog, you can set Range to Specified Columns to only append certain columns of worksheets. Hope this works for you.

Thanks,
James

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