These lines of VB hould do the trick:
Application.ScreenUpdating = False
tf = "YOURFOLDERNAMEHERE"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(tf)
Set fc = f.Files
For Each f1 In fc
Workbooks.OpenText Filename:= tf & f1.Name, Origin _
:=xlMSDOS, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _
Comma:=True, Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1), _
Array(2, 1)), TrailingMinusNumbers:=True
............. YOU CODE HERE
next
Please note that the fileopen line gets cut up by the editor for this BBS. You gotta "cut it right" yourself.
All the variables a variant
It will open all files in the specified directory - no matter what type. I use this for opening a lot of text files that are output from another program - convert the output and aling it for "graphs"
Best regards
Morten