+ Reply to Thread
Results 1 to 6 of 6

need help debuging a program that loads data from other excel files

  1. #1
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    need help debuging a program that loads data from other excel files

    I'm not sure if anyone can help with this but I'll ask anyway. I had a friend help be build this code that opens up other excel files and then imports data from them into this sheet. The code he developed is below. It works fine when I load 11 files which is what its set to now, but I'm trying to get it to open more than 11 now. So far I'll need 20 or 30. As far as I can tell all i have to do is change the "filestoload=10 " to "filestoload=11" or to whatever number of files i want, but when I do it crashes. My friend did notate a lot so I hope it makes sense. I can try to upload an example if needed but I'll have to trim the program down in size so i can upload it. Ill try to do it and post it when i get it done later. There are a lot of lines of code that are ' out but its hard to see in this copy.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: need help debuging a program that loads data from other excel files

    It looks like files is an array - if so:

    Please Login or Register  to view this content.
    might work
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: need help debuging a program that loads data from other excel files

    not sure where to put that in what I had. Which one do i replace with that? or do i replace all "for i = 0 to filestoload" with "for i = 0 to Ubound(files)

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: need help debuging a program that loads data from other excel files

    Yep!

  5. #5
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: need help debuging a program that loads data from other excel files

    awesome thanks that worked

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: need help debuging a program that loads data from other excel files

    You're welcome and thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically Copy Informaton from a Program into Excel files
    By CantDoAThing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2014, 02:14 AM
  2. Macros script that loads data from other excel documents
    By mrexcelis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-23-2014, 04:34 AM
  3. Replies: 0
    Last Post: 11-06-2013, 10:58 AM
  4. [SOLVED] Excel files in separate program windows
    By Jason Dove in forum Excel General
    Replies: 28
    Last Post: 09-27-2012, 08:47 AM
  5. Replies: 5
    Last Post: 08-29-2008, 03:40 PM
  6. Saving and Closing multiple files and Excel program
    By Roger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2005, 11:05 PM
  7. bmp files in Excel Hyperlinks open with wrong program
    By Dave B. in forum Excel General
    Replies: 1
    Last Post: 05-31-2005, 01:05 PM

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