Written by Allen Wyatt (last updated January 25, 2025)
This tip applies to Excel 97, 2000, 2002, and 2003
Andrew asked if there is a way to import many different files into Excel, all using the same import specifications. For instance, when you choose to import a comma-delimited text file, Excel's import filter asks you a series of questions about how the import should be done. If you are importing a single file, this is not a problem. If you have fifty or sixty files to import, answering the questions over and over again can get very tedious very quickly.
The short answer is that there is no way to do a "mass import" in Excel. Some questions asked by the import filter simply need to be asked for each file. The only way around this is to create your own "import" process using a macro. The macro can either open the source file itself, or it can answer the Import Wizard questions, as it sees fit.
Of course, writing such a macro can be a daunting exercise. It is beyond the scope of ExcelTips to attempt such a macro, particularly since the process to be followed during the import can vary so much from one type of input file to another.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2225) 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: Importing Many Files Into Excel.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Keeping tabs on the size of a workbook can be important when using Excel. You have a couple of options that will allow ...
Discover MoreWant a quick way to see the full path name associated with a workbook? You can add a tool to the menu bar that displays ...
Discover MoreWhen processing plain text files in a macro, it is often helpful to know how much data the file contains. The normal way ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2025-01-25 04:54:34
Ralph
The way I import multiple csv files is to use a Windows command to copy all the files with a common name and wildcards to one file, then import the combined file, e.g. copy "D:\Internet Usage Backup\*BitMeter Usage Daily.csv" "D:\Internet Usage Backup\%year%%month%%day%_Daily Usage Combined.csv"
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments