Re: application.filesearch generates run-time error '430'

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Andi Mayer (andi_mayer_at_gmx.at)
Date: 01/01/05


Date: Sat, 01 Jan 2005 13:49:47 +0100

On Thu, 30 Dec 2004 19:54:24 -0500, "Microsoft"
<blhavens@gee.not.today.yahoo.com> wrote:

>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"

---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW