Help needed with oshell.FindFiles...
-
I am relatively new to VB, using VB6; and working on a project that needs to be able to allow someone to type into a text box a name and then click a button to have it search through a certain drive's folders for Excel or Word files that have that the name somewhere in the file. I have found some codes on the net that can do close to that, BUT I need the people using this application to be able to double-click on the file from the list of ones returned and be able to have that file open up in either Excel or Word depending on the extension. Using oshell.FindFiles seems to get me the closest to accomplishing what I want by just pulling up the Window's Serch box; but how can I make the "containing text" box stand out, or tell it to look at .xls and .doc files, and OLNLY from certain directories in a certain drive? Is oshell.FindFast what I should be trying to do this on or is there another way? Thanks for any help anyone can offer; it is mucho appreciated! CP