Dir(strPath & "\*.txt") will take care of this. It returns
a zero length string if there is no file to find, or the
first file name if one is found (subsequent calls to Dir()
will return the next file name that matches).
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.