+ Reply to Thread
Results 1 to 3 of 3

Help required in importing multiple .txt files into one excel sheet

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help required in importing multiple .txt files into one excel sheet

    Hi all,

    I'm trying to import multiple text files into one worksheet and have the following code.

    It runs fine for the 1st file but throws error while refreshing the second one. The line where I'm getting the error is in bold. I'm getting the following error message "Run-time error '1004': Application-defined or object-defined error". Really appreciate all your help.
    Please Login or Register  to view this content.
    Last edited by arlu1201; 05-22-2012 at 04:08 AM. Reason: Please use code tags in future.

  2. #2
    Registered User
    Join Date
    05-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help required in importing multiple .txt files into one excel sheet

    Hi all,

    I was able to find out the issue and it was due to incorrect file path. the code works perfectly now

  3. #3
    Forum Contributor
    Join Date
    01-09-2011
    Location
    Nomans, Land
    MS-Off Ver
    Excel 2007
    Posts
    103

    Re: Help required in importing multiple .txt files into one excel sheet

    Kar, hello. When you import, do you use the same array for all files? How could I change this code so that I can import multiple txt files with different arrays? Rgds

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1