Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
kiza
I have enclosed the full code for opening a text file using tab as th column seperator to change the column seperater to a comma as in a CSV file then chang Tab:=True to Tab:=False and Comma:=False to Comma:=True Sub OpenUserFile() Dim FileToOpen As Variant FileToOpen = Application _ .GetOpenFilename("Text Files (*.txt), *.txt") If FileToOpen = False Then Exit Sub End If MsgBox "Open " & FileToOpen Workbooks.OpenText FileName:=FileToOpen, Origin:=xlWindows _ , StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _ ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=Fals _ , Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1) End Su -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Excel Discussion (Misc queries) | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Setting up and Configuration of Excel | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
file open via IE hyperlink causes already open files to shrink and tile | Setting up and Configuration of Excel |