Open Files

M

Maro

Hi,

I have 100 files in a folder and I want to analyse this
files with VBA access is it possible to be able to open
these files automatically one after other and to analyse

Thanks
 
T

Treebeard

If you know the names of the files, yes.

Check out these topics in the VBA help screen:

CreateObject("Scripting.FileSystemObject")
FileLen
OpenTextFile
ReadLine


Jack
 
T

TC

Using the VBA Dir$() function, you can eaily determine the name of every
file in the specified folder. Then use the Open statement to oen the file as
a normal file, and the Input, LineInput, Get & other statements to read the
data from the file. Check out those statements in online help.

HTH,
TC
 

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