+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP on closed workbook table_array

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    69

    VLOOKUP on closed workbook table_array

    I use VLOOKUP's quite a lot. I'm trying to put together a macro that I can use to lookup a value in a table on a closed workbook. For now though I'm just trying to get it to work as a formula so that I can work out how to reference the table array.

    My current forumla is..

    Please Login or Register  to view this content.
    It works fine work the workbook open but whenever I close it, i just get #REF. Is there a way around this so that I can get it to work without needing to have both workbooks open?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: VLOOKUP on closed workbook table_array

    VLOOKUP does not work with Tables on closed worksheets. Convert the Table to a range, or (if you want to keep the Table) use whole column references pointing to the source table.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-18-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    69

    Re: VLOOKUP on closed workbook table_array

    Ahhh I see thanks!

    I want to keep the whole table because the whole idea is that it will grow as people add to it. If i referance the exact range it'll miss things added beyond it.

    How do I use whole column references?

    EDIT: Nevermind just worked it out. Thanks

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: VLOOKUP on closed workbook table_array

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  5. #5
    Registered User
    Join Date
    01-18-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    69

    Re: VLOOKUP on closed workbook table_array

    Ok so bonus question time...

    I've put it into VBA but now I'm having the same issue. Works fine with both workbooks open but error pops up when I close the workbook with the table array (I've more to add and tidy up but I want to get the basics working before I worry too much about that..

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: VLOOKUP on closed workbook table_array

    I know NOTHING about VBA!!! so, sorry....

+ 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. Vlookup textbox value in closed workbook
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2016, 04:59 AM
  2. VBA Code For Vlookup Function with Table_Array from Another Workbook
    By Darrellcoholic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2014, 12:55 AM
  3. [SOLVED] Vlookup() on closed workbook
    By lloydgodin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-22-2012, 06:44 PM
  4. VLookup on Closed Workbook
    By BigEye64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2009, 02:42 AM
  5. [SOLVED] Vlookup to closed workbook ?
    By Les Stout in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2005, 06:20 PM
  6. Vlookup to closed workbook ?
    By Les Stout in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2005, 06:17 PM
  7. vlookup with closed workbook
    By Daniel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2005, 05: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