P
PLPE
Hi,
I am opening a text file within excel. For the file to be properly
formatted within excel, it is necessary to field delimited using a
tab.
Is it possible to determine if the text file being imported is tab
delimited?
I am using the following to open the text file.
Code:
--------------------
Sub Open_File(My_File)
Workbooks.OpenText Filename:=My_File
, Origin:=437, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
Tab:=True, 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), Array(9, 1), Array(10, 1), _
Array(11, 1), Array(12, 1)), TrailingMinusNumbers:=True
My_File = ActiveWorkbook.Name
End Sub
I am opening a text file within excel. For the file to be properly
formatted within excel, it is necessary to field delimited using a
tab.
Is it possible to determine if the text file being imported is tab
delimited?
I am using the following to open the text file.
Code:
--------------------
Sub Open_File(My_File)
Workbooks.OpenText Filename:=My_File
, Origin:=437, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
Tab:=True, 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), Array(9, 1), Array(10, 1), _
Array(11, 1), Array(12, 1)), TrailingMinusNumbers:=True
My_File = ActiveWorkbook.Name
End Sub