
Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Thanks, that helped me a lot.
What do you mean by saying: processing the result of filesearch once more?
Thanks again

Signature
Adriana, Buenos Aires, Argentina
"Helmut Weber" escribió:
> Hi Adriana,
>
[quoted text clipped - 17 lines]
> Not to difficult, using the dir-function,
> or processing the result of filesearch once more.
Helmut Weber - 10 Nov 2005 08:25 GMT
Hi Adriana,
as with "es*.*" you get all files which start with "es",
you might like to remove those ending not with ".txt"
from .foundfiles(), or writing all other names into a new array,
or use something like (pseudocode, untested):
for l = 1 to foundfiles.count
if right(.foundfiles(l), 4) = ".txt" then
' whatever
endif
next
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000