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 loop through Different Folders in a project

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
praveen248 Posted - 05/19/2017 : 05:36:32 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
redman Posted - 02/16/2018 : 06:44:26 AM
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.
arstern Posted - 05/19/2017 : 10:19:39 AM
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

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