darkside
11-11-2003, 03:21 PM
Private Sub Command1_Click()
Dim fso As New Scripting.FileSystemObject
Set fs = New Scripting.FileSystemObject
If fs.FileExists(Text1.Text & Text2.Text) Then
MsgBox ("The file was found")
Else
MsgBox ("The file was not found")
End If
End Sub
What is wrong with this? I get an error when i click on the button that says 'user defined type not defined' and it highlights fso As New Scripting.FileSystemObject.
Any help appreciated
Dim fso As New Scripting.FileSystemObject
Set fs = New Scripting.FileSystemObject
If fs.FileExists(Text1.Text & Text2.Text) Then
MsgBox ("The file was found")
Else
MsgBox ("The file was not found")
End If
End Sub
What is wrong with this? I get an error when i click on the button that says 'user defined type not defined' and it highlights fso As New Scripting.FileSystemObject.
Any help appreciated