application.filesearch generates run-time error '430'

M

Microsoft

Word 2003
Windows 2003 Server via Citrix

When I perform the following code on my home Windows 2003 machine all is
well. When I run it via Citrix (running on a Windows 2003 Server machine),
it stops on the very first line with a Run-time error '430'

With Application.FileSearch 'this is the line causing the error
.FileName = "foobar.txt"
.LookIn = "c:\temp"
.Execute
For I = 1 To .FoundFiles.Count
MsgBox .FoundFiles(I)
Next I
End With

Full text of error:
Microsoft Visual Basic
Run-time error '430':
Class does not support Automation or does not support expected interface
 
B

B Havens

ok, for the record, ignore where my message says From 'Microsoft' - I don't
know how my account name defaulted to that. I am not associated with
Microsoft.
 
A

Andi Mayer

Word 2003
Windows 2003 Server via Citrix

When I perform the following code on my home Windows 2003 machine all is
well. When I run it via Citrix (running on a Windows 2003 Server machine),
it stops on the very first line with a Run-time error '430'

With Application.FileSearch 'this is the line causing the error
.FileName = "foobar.txt"
.LookIn = "c:\temp"
.Execute
For I = 1 To .FoundFiles.Count
MsgBox .FoundFiles(I)
Next I
End With

Full text of error:
Microsoft Visual Basic
Run-time error '430':
Class does not support Automation or does not support expected interface
I would think of a reference problem or a permision problem.

Try: (aircode!!!)

if Dir("C:\Temp\foobar.txt") <> "" then MsgBox "found the file"
 
W

Wim van Laarhoven via OfficeKB.com

Is this problem fixed in any way?
I seem to have the same problem under Citrix, but then with Office XP on a Windows 2000 server.
Any help welcome.

Thanks,

Wim[at]van-laarhoven.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top