+ Reply to Thread
Results 1 to 9 of 9

Need a function to access data in closed workbooks

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Need a function to access data in closed workbooks

    Hi,

    I have a two-part question.

    I am trying to produce a summary workbook that accesses data from 100+ closed workbooks.

    Previously I used indirect.exe but I can’t find a working version of morefunc online anymore.

    I can access closed workbooks with this function :

    ='C:\Documents and Settings\o\My Documents\[WEEK90A.xls]Monday'!A1

    So question one would be: How can I edit this function to make “WEEK90A.xls”, “Monday” and “A1” refer to indirect values held in a helper sheet called “workings”?

    Eg workings!a1 contains the text “Week90”
    workings!b1 contains the text “Monday”
    workings!c1 contains the text “A1”

    Question number two would be: Does anyone have a working version of morefunc they could put on the site as an attachment?

    Thanks in advance

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Need a function to access data in closed workbooks

    Unfortunately, indirect cannot be used to pull data from closed worksheets. You can use Excel's Data connection features to point out those particular cells that you're looking for, or, use a VBA script to pull from a pre-defined list (Like if you have a list from the workings worksheet) or a consistent field within all files in a directory. I think everyone on the forums would be willing to help once you decide what's right for you.


    However, as an FYI, to write the indirect function for the first part of your question, you can use
    =INDIRECT("C:\Documents and Settings\o\MyDocuments\[" & Workings!A1 & "]" & Workings!B1 & "'!" & Workings!C1)
    The combination of & and quotes are used to concatenate text strings from other cells, and add in additional syntax as necessary.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a function to access data in closed workbooks

    Quote Originally Posted by Odlanier View Post

    I can’t find a working version of morefunc online anymore.
    Here you go:

    http://excelenthusiasts.sharepoint.c...s/Morefunc.zip
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need a function to access data in closed workbooks

    Thanks Tony,

    Does this version work for you, because I am getting "runtime error 216 at 000032c0" when I try to run setup?

    This is the same problem I get with the versions I've downloaded recently. I assumed there was something wrong with them but if this version works for you it might be a problem with my pc setup (I recently reinstalled windows).

    Would it be possible for someone to post the actual dll(s) or alternatively has anyone had and solved the runtime error?

    Cheers

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a function to access data in closed workbooks

    Yes, this version works for me.

    I have used Morefunc in Excel 2002 and 2007 for many years.

    I recently got a new machine and had to re-install all my Office suites.

    So, I also had to download and install Morefunc. I downloaded from the link I posted and installed it in Excel 2002 and 2007.

    I don't think it works in 64bit Excel. All of my versions are 32bit.

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need a function to access data in closed workbooks

    Thanks for getting back to me.

    Morefunc worked before I re-installed everything so I guess I need to look at my pc set-up (I'm guessing it's a service pack or anti-virus issue).

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a function to access data in closed workbooks

    Good luck!

  8. #8
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need a function to access data in closed workbooks

    Problem is now solved, thanks for your help.

    Apparently the setup program as issues with large hard drives (i just went from a 10GB to an unpartitioned 2TB).

    I ran the the setup at an internet cafe then put the files in the appropriate folders once I got home.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a function to access data in closed workbooks

    Good deal. Thanks for the feedback!

+ 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. vba function vlookup through 2 closed workbooks
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2013, 05:36 AM
  2. Access and collate macros from closed workbooks
    By freud1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 06:32 AM
  3. VLOOKUP function through multiple closed workbooks
    By ExcelHelpBen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2012, 10:11 AM
  4. Access a closed workbook to return data
    By Belgarath75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2011, 08:17 AM
  5. Access Closed workbooks (2003)
    By jmack in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2006, 06:20 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