+ Reply to Thread
Results 1 to 14 of 14

INDIRECT update with external workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    05-02-2008
    Posts
    18

    INDIRECT update with external workbook

    Hello,

    Is it possible for the INDIRECT function to be tweaked so it updates even when the external workbook is closed?

    Also does anyone have any idea why
    =INDIRECT("C:\Documents and Settings\*****\Desktop\Excel[book2.xls]Sheet1!C"&C2)
    Produces a #REF! error code?


    Any help would be greatly appreciated :D

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if links help

    http://www.dailydoseofexcel.com/arch...sed-workbooks/
    http://www.j-walk.com/ss/excel/tips/tip82.htm
    http://www.contextures.com/xlFunctions05.html#RefWkbk

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You could download and install a free Morefunc.dll addin from here: http://xcell05.free.fr/english/ and use the Indirect.ext function

    =INDIRECT.EXT("C:\Documents and Settings\*****\Desktop\Excel[book2.xls]Sheet1!C"&C2)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    05-02-2008
    Posts
    18
    I've used the INDIRECT.EXT function and it works brilliantly. But ideally, I need to get it to work without installing add-in's into excel

    Is there any other way to do this?

    Also any feedback on the reason why my INDIRECT ^^^ function isn't returning a result with the filename?

    Thanks!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by papa_face
    ...

    Also any feedback on the reason why my INDIRECT ^^^ function isn't returning a result with the filename?

    Thanks!
    should there be another \ after EXCEL?

  6. #6
    Registered User
    Join Date
    05-02-2008
    Posts
    18
    I tried:
    =INDIRECT("C:\Documents and Settings\***\Desktop\Excel\[book2.xls]Sheet1!C"&C2)
    It gave me:
    #REF!
    But
    =INDIRECT("[book2.xls]Sheet1!C"&C2)
    works.
    I need it to use a full path to gain access to the file.

    But having said that, INDIRECT is only meant to use open workbooks so it would never need the FULL path, just the sheet name.

    Is there any other way of referencing a cell dynamically, like I have done in the above code, but so it will update automatically without the workbook open?

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    How about:

    =INDIRECT("'C:\Documents and Settings\***\Desktop\Excel\[book2.xls]Sheet1'!C"&C2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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