Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel again...how to use the "LookIn" property of fs in VB

Status
Not open for further replies.

mike777

Programmer
Jun 3, 2000
387
US
OK, this is awesome. Thank you, tclere.
In Excel, through VBA, you can use

Code:
set fs=application.filesearch
fs.lookin="path\filename"

to find the file, etcetc. But when I try this in VB, first "lookin" doesn't capitalize and I also get a "need object" error.
I tried adding references, no good. Anybody know what I'm missing?
Thanks again.
Mike Kemp
kempmike65@aol.com [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top