after reading in this forum, but I think it's pretty much the same thing and Origin also closes itself in the second loop. When I open the excel files as Excel Workbooks, everything works fine, but then i don't know how to determine the number of sheets within each workbook.
Did i forget a command to kind of like reset everything, since it worked in the first loop. Or can the doc -a command not be executed twice after another? Is there maybe another way to work around it?
Thanks
Anita
1 L A T E S T R E P L I E S (Newest First)
superklee
Posted - 12/09/2004 : 09:05:28 AM Nevermind,
I figured it out. I forgot to reassign some variables. at least it works now.