K
KAM
I am opening a text file using excel vba:
Workbooks.OpenText FileName:=MyFileName, Origin:=xlWindows, _
StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=True, Comma:=False, _
Space:=False, Other:=False, FieldInfo:=Array(Array(1, 2), Array(2, 2))
The default delimiter is tab. In the instance above, I am setting the
delimiter to semicolon.
My problem is that when the user would like to open another text file on
their own, the default settings in the open text file screen do not "reset"
back to the tab. They stay with the semicolon as being the delimiter.
Is there any way I can reset the delimiter in my code?
Thanks!
Workbooks.OpenText FileName:=MyFileName, Origin:=xlWindows, _
StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=True, Comma:=False, _
Space:=False, Other:=False, FieldInfo:=Array(Array(1, 2), Array(2, 2))
The default delimiter is tab. In the instance above, I am setting the
delimiter to semicolon.
My problem is that when the user would like to open another text file on
their own, the default settings in the open text file screen do not "reset"
back to the tab. They stay with the semicolon as being the delimiter.
Is there any way I can reset the delimiter in my code?
Thanks!