Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: File Formats that Include Field Formats.
by Allen Wyatt
(last updated July 16, 2015)
Wolfgang often imports CSV files that are created by other programs. When importing he needs to specify to Excel how it should treat the data that it is importing. This causes Wolfgang to wonder if there is a file format that Excel can import that has field formats embedded so that he doesn't have to do any manual work on import.
Unfortunately this cannot be done; Excel provides no way to add such information to a plain-text file it is importing. There is a potential workaround, however. You could simply import your CSV file with no formatting applied, and then use the macro recorder to record how you manually format the freshly imported data. This macro could then be executed every time you import another file that uses the same sort of data as the first CSV file you imported.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3415) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: File Formats that Include Field Formats.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
When importing information from a CSV file, you may get unintended results from time to time. Here's how to force Excel ...Discover More
Do you need to figure out the name of the parent folder of whatever folder a worksheet is in? Believe it or not, this can ...Discover More
Wouldn't it be nice to have a single command that would save each of you open workbooks, all at once? It's easy to do ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.