Vlookup, GetDirectories Question

N

NewToVB

For every directory in C:\temp\ I need to look in the directory and open up
Temp1.xls. Then I'll have to do a vlookup on each file and return the
results to a new spreadsheet. The directories I'm looking in are all dates
and I'm compiling the results by date, into one spreadsheet. Does anyone
have any ideas on how I can look in each directory and open Temp.xls? I'm
using visual studio by the way, but If you have VBA knowledge this will be
helpful as well. I have this so far:

Dim s as String
For each s in System.IO.Directory.GetDirectories("C:\temp\")
'open Temp.xls
'do vlookup
next s

Does this make sense? Thanks in advance!
 

Ask a Question

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.

Ask a Question

Top