Programmer1974
Programmer
I am working with Excel 97 and I want to be able to open a comma delimited text file and set the format for all rows to be "Text" verses "General". Below is the code that I am using to open the file, but I am not having much luck finding the code to set it to "Text". Any ideas???
Dim Infile
Infile = "C:\DATA.PRN"
Workbooks.OpenText FileName:= _
Infile, Origin:=xlWindows, _
StartRow:=1, DataType:=Excel.XlTextParsingType.xlDelimited, Comma:=True