Solved

Open all files in folder

Posted on 2003-11-19
3
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paint/Redraw window while dragging 16 88
String manipulation in Visual Basic 7 84
Visual Studio 2005 text editor 10 49
VBA: copy range dynamically based on config sheet v3 6 33
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

726 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