Not for me:
from the immediate window:
? dir("c:\data\*.xls")
KZ081-Default Survey1.xls
or
spath = "C:\data\"
sname = Dir(spath & "*.xls")
? sname
KZ081-Default Survey1.xls
--
Regards,
Tom Ogilvy
"Srikanth Ganesan" wrote in message
...
Hi Tom and Myrna,
I still have a problem. When you define sName = "*.xls" it seems to
search for a file with a name *.xls instead of using the * as a
wildcard. Please help.
Srikanth
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!