Solved

Open all files in folder

Posted on 2003-11-19
3
292 Views
Last Modified: 2012-05-04
I want to loop through all files in a folder one by one....

I'm trying to use code in excel spreadsheets that includes

Dim TestFile As New FileSystemObject

and getting the error:

User-defined type not defined.....

I am using Excel 1997.....Is this not available in this version?

Is there any other way to go about this?
0
Comment
Question by:mak345
  • 2
3 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 9781737
make sure you add a reference to ms scripting runtime under references
0
 

Author Comment

by:mak345
ID: 9781741
not sure i am following what you mean by that....
0
 
LVL 18

Accepted Solution

by:
bobbit31 earned 35 total points
ID: 9781760
in the visual basic editor... click tools/references and click microsoft scripting runtime
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question