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
 How to loop through Different Folders in a project
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

praveen248

India
10 Posts

Posted - 05/19/2017 :  05:36:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Version 2015,
Hi,

I have to loop through all the folders--> worksheet in the project and I have to copy the data in a single worksheet in a different folder from the data taken from all the worksheets in different folder, How can i Do it?
refer to the picture


B.V.Praveen

arstern

USA
237 Posts

Posted - 05/19/2017 :  10:19:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

One method that you can use is Append Worksheet. You can do this via the GUI http://www.originlab.com/doc/Origin-Help/append-worksheet or command window http://www.originlab.com/doc/X-Function/ref/wAppend.

For example, select worksheet at the top of the menu --> Select Append Worksheet.



With the append worksheet: wAppend dialog box open. Select the triangle in worksheets to select which worksheets you want to copy into one worksheet. You may want to select sheets in Project to view all sheets.



If you want to use the command window, here is the basic format:
wAppend irng:=([Book1]Sheet1!, [Book1]Sheet2!, [Book2]Sheet1!) method:=row ow:=[<new>]<new>;

See link above for more information.

--Aviel
OriginLab
Go to Top of Page

redman

UK
59 Posts

Posted - 02/16/2018 :  06:44:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe it is time to expand the "doc -e" to loop among folders. For example, to import data files in different folders to a project with the same folder structure and file names. To loop among folders and sub-folders in the project to find any workbooks, plot all worksheets in the same workbook and save the new graph in the same folder with the same long name as the workbook.
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