Opening a *.txt with a variable name is to slow, the name has varible
string like DEAE****.txt where the **** is a number between 0000 and
9999. There is only one archive with this variable name in the DIR. I
use this code but it is too slowly, what can I do.
__________________________________________________________________
For i = 1 To 9999
On Error Resume Next
Workbooks.OpenText Filename:="DEAE" & i & ".txt", Origin:= _
xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:=
_
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True,
Semicolon:=False, _
Comma:=True, Space:=False, Other:=True, OtherChar:="|",
FieldInfo:= _
Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1),
Array(5, 1), Array(6, 1), Array(7 _
, 1), Array(8, 1))
Next i
__________________________________________________________________
Thanks to all
Bookmarks