T
Tony_at_work
Hi,
I have used a foundfiles object so that I can open all word documents within
a particular folder on a network drive.
I would like to now do a LIKE comparison on the files that have been found
against some string criteria as shown below :
If fs.FoundFiles(i) Like "*red*" Or "*call*" Or "*knock" Or "early" Then
This is a mismatch since the foundfiles(i) referes to a path and not a string.
Can someone tell me how to convert the path to a string ?
Many thanks,
Tony
I have used a foundfiles object so that I can open all word documents within
a particular folder on a network drive.
I would like to now do a LIKE comparison on the files that have been found
against some string criteria as shown below :
If fs.FoundFiles(i) Like "*red*" Or "*call*" Or "*knock" Or "early" Then
This is a mismatch since the foundfiles(i) referes to a path and not a string.
Can someone tell me how to convert the path to a string ?
Many thanks,
Tony