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.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
Imagine how painful it would be if every time you started Excel it tried to load all the files in your root directory? ...Discover More
If you have links in your workbook to data in other workbooks, you may want to control whether Excel updates those links ...Discover More
Excel, by default, periodically writes information to AutoRecover files that can help protect your data in case Excel is ...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.