LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need to import multiple files with a macro

Hi, I need to import files into excel. I can do it by hand easil
enough but there are several hundred files and to go through and clic
import and select each one at a time will take a very long time.

Each file has the same name, but they are all in differant folders, an
those folders do not have regular names. They are, however, all withi
the same folder themselves.

I wanted to make a macro that will open the first folder, select th
correct file, import it, move over a column, and then run through th
same thing, only for the next folder. Right now the macro I recorde
will open a folder, import the file and move over a column, but then
if run again, it imports the same file again and moves over anothe
column.

Any ideas on how I can tell it to select the next folder? I trie
deleting folders after I imported from them hoping that it would alway
select the first folder in the list, but it still tries to import th
same file again (and gives and error because that file is no longe
there).

Any help would be appreciated

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Multiple XML Files into Excel Mungkol Excel Discussion (Misc queries) 3 January 22nd 09 01:37 PM
Import multiple text files (Macro) Thr33of4 Excel Discussion (Misc queries) 0 September 19th 06 02:19 AM
Import of multiple .CSV files into Excel Ayato[_10_] Excel Programming 0 July 8th 04 06:02 PM
Multiple txt files import Arnie[_4_] Excel Programming 4 June 9th 04 12:38 AM
Import multiple files macro can't find files Steven Rosenberg Excel Programming 1 August 7th 03 01:47 AM


All times are GMT +1. The time now is 05:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"