Excel 2010.
I have several hundred txt files, amounting to just over 1gb in cumulative file size that was handed to me for processing. There are integrity problems preventing me from importing them directly into Access, so I am going through them one by one in Excel first, hitting them with a VBA macro to clean up the file. I ran into a snag however, in which I can't figure out how to stop Excel from opening the .txt file under an assumption that it is a .csv.
The data is pipe delimited, because of the valid presence of commas, colons, semicolons, and tabs within the text data. What is worse, there are even valid single AND double quotes in the text.
Opening the file as a pure txt file in Excel is fine IF that particular file does not have any commas in the text fields. On any row that contains a comma however, it automatically splits the row string on that comma into subsequent columns. I can't just open the files in notepad first and strip commas, because they are still important.
I can't seem to locate any setting within Excel that handles how it auto-processes text files. I CAN run through the wizard by opening the file directly through the File menu, but would prefer not to. Even using this wizard, or any other source of text to column wizard, removing the comma delimited option doesn't appear to change the default of a comma for the delimiter
I know this has to be an internal setting somewhere, and I'm hoping someone might be able to point me to how to change it. Even if it's a VBA script to force a change because there isn't a UI element to do so.
Ideas?
Bookmarks