+ Reply to Thread
Results 1 to 7 of 7

VB alternative to using INDIRECT.EXE?

  1. #1
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    VB alternative to using INDIRECT.EXE?

    Before I explain the issue that I am having, I would like to start out by saying thank you to anybody that has the time to assist me with this thread.

    Now, let me give you a brief synopsis of our current situation...

    I've got a Workbook that has been built to gather/pull data from, what has turned out to be, hundreds and hundreds (and growing) of different closed Workbooks. It's basically a Purchase Order Log that automatically gathers the data from the individual Purchase Orders as they are created.

    This PO Log Workbook is a table with 8 columns, A:H.

    Column A has the following formula in it.
    Please Login or Register  to view this content.
    Where "FL" is a Name substitution for the folder location to our individual Purchase Order files. As the formula indicates, it searches that folder location for any existing or new files in that folder, then transfers that file name, minus the extension (.xlsx), into the respective row within Column A.

    It is this retrieved data in Column A that drives the remaining formulas located in the remaining columns (B:H). Those remaining formulas all look exactly the same, with exception to the specific cell that they are requesting data from. Columns B:H have the following formula in them.
    Please Login or Register  to view this content.
    You'll notice that this formula is looking for a file named whatever is in Column A's respective cell +.xlsx. Once that file is located, it is looking for data in Cell F9. Every remaining column is looking for data in a different cell(s), but the rest of the formula remains the same.

    That's the meat and potatoes of what should be a very simple Workbook.

    What has happened overtime though is that we now have over a thousand individual files that this Workbook is looking into, and it's resulting in exponentially increased calculation times. Right now, we have to wait a little over 30 minutes for our PO Log file to update. And that amount of time is increasing as more and more individual PO files are created.

    My question to somebody out there is...

    Is there some other way for me to achieve what it is that this PO Log workbook is doing, without having to wait 30+ minutes for it to gather the data from those thousands of "closed" workbooks?

    Can VB provide a solution to this?

    Any and all help is greatly appreciated. I look forward to any new ideas.

    Thank You

  2. #2
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: VB alternative to using INDIRECT.EXE?

    I decided to go ahead and attach a copy of this PO Log for reference. I made to sure to remove/rename any specific server location indicators for privacy reasons.

    Automated PO Log.xlsm

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VB alternative to using INDIRECT.EXE?

    You're experiencing the long-term debilitating results of trying to use Excel as a database, which it is not. MOREFUNC is giving you the tool to reference external closed workbooks in an indirect manner, but it isn't intended for use with 1000s of such workbooks.

    The tool you have now will only work the way it works. It sounds like your needs exceeded that long ago and you need to invest some time and effort into an environment that will then grow with you.

    Your 1000s of workbooks need to be imported into a single ACTUAL database like Access or SQL. These programs were designed and intended to index and crossreference millions of rows of data. Even Excel can reach into those databases and extract results using queries.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: VB alternative to using INDIRECT.EXE?

    I figured as much.

    You wouldn't happen to have any advice on the best route I could take in somehow using all of this existing data from a 1,000+ separate files to then incorporate into some type of database program.

    And as far as database's go, would OpenOffice's "Base" work as an alternative to Access or SQL?

    I don't have much experience with database software, but am an extremely quick learner, and already have a decent understanding on how they work.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VB alternative to using INDIRECT.EXE?

    That would be a question for a different part of the forum. Mark this one as solved and head over to the other parts of this forum, or forums dedicated to SQL or Access as a whole. Good luck, being a learner is 80% of the battle.
    Last edited by JBeaucaire; 03-21-2014 at 12:21 AM.

  6. #6
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: VB alternative to using INDIRECT.EXE?

    Quote Originally Posted by JBeaucaire View Post
    That would be a question for a different part of the forum. Mark this one as solved and head over to the other parts of this forum, or forums dedicated to SQL or Access as a whole. Good luck, being a learner is 80% of the battle.
    Sounds good. Thanks for trying.
    Last edited by JBeaucaire; 03-21-2014 at 12:21 AM.

  7. #7
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: VB alternative to using INDIRECT.EXE?

    Well... I got what I was looking for with VBA. Took awhile. But here it is below in case anybody else is looking for a VBA solution to this, outside of a Database application.

    Please Login or Register  to view this content.

+ 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. Indirect Alternative
    By par0016 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-07-2013, 02:45 AM
  2. Alternative to Indirect()
    By erwina in forum Excel General
    Replies: 3
    Last Post: 09-04-2010, 08:06 PM
  3. Alternative for INDIRECT
    By Hein in forum Excel General
    Replies: 11
    Last Post: 01-27-2009, 05:42 AM
  4. Alternative To INDIRECT?
    By SamuelT in forum Excel General
    Replies: 3
    Last Post: 11-20-2008, 03:53 PM
  5. Alternative to Indirect
    By marston.gould@alaskaair.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2006, 07:35 AM

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