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 June 15, 2019)
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!
If you have a full path designation for the location of a file on your hard drive, you may want a way for Excel to pull ...Discover More
If you use UNC paths in your links to external information, those paths may need to be changed at some point. You can ...Discover More
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
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.