Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Ortiiiiiz
Posted - 09/24/2013 : 3:36:59 PM Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8 SR 0 Operating System: Windows 7
Hi,
I am trying to export multiple .txt files from a single worksheet. This worksheet contains 130 columns, and I would like to have 65 files containing 2 columns each. Could you help me?
Thank you!
Eduardo O.
1 L A T E S T R E P L I E S (Newest First)
Penn
Posted - 09/30/2013 : 05:34:35 AM Hi Eduardo O.,
Please try this.
int nCols = wks.nCols;
int ii;
for(ii = 1; ii <= nCols; ii+=2)
{
worksheet -s $(ii) -1 $(ii+1) -1; // select two columns
expasc type:=text path:="d:\data$(ii).txt" select:=1; // export two selected columns
}