Discussion Locked

FileSystemObject (VB6)

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am running Visual Basic 6 service pack 5.
And, I am having the compile error: User-defined type not defined with this statement:
Dim fso As New FileSystemObject
Any help would be appreciated.

3 replies

by xxx123

Looks like you forgot to set a reference to the Microsoft Scripting Runtime library. (See under menu Projects, References.)

by setivi

The answer was right on target.
I also had to install service pack 5
for VB6.

This discussion is closed to new replies.