Consulting

Results 1 to 5 of 5

Thread: Look up results across workbooks

  1. #1

    Look up results across workbooks

    Here's my problem:

    I have a workbook (WorkBook1) in which there is a column which consists of "code numbers".

    I have a workbook (WorkBook2) in which those numbers are assigned names.

    I want the numbers, when my macro is ran, to look up the assigned name and replace the number with the name in WorkBook1 ....

    How possible is that, and where would I even begin with that one. All of my previous code was from within one workbook.

    Thanks!

  2. #2
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    It is very possible, and can be done using formulas in all likelihood....what is the prohibition against having one workbook with two sheets?

    You can set up lookup formulas on one workbook, then "move" the other sheet by right-clicking the sheet and selecting move to a new workbook. The formulas will self adjust in that case...

    As far as the lookup / replace, this is entirely possible. how many rows of codes are in the 1 workbook, and are there multiple matches possible?

    Are there multiple sheets to deal with in each workbook as well?
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  3. #3
    sorry for taking so long to get back...

    The reason for two workbooks - each is generated from different programs and databases by different groups .... to make one workbook would be asking a whole of collaboration between two competing groups ....

    There are hundreds of lines of "codes" in that workbook, and the workbook i'm needing to update has thousands.

  4. #4
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    This can be done with a worksheet formula
    e.g.
    ='C:\Documents and Settings\Killian\Desktop\[Book2.xls]Sheet2'!A2
    K :-)

  5. #5
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    ...but as I understand it, Tony needs to actually find the matching data and replace it in his workbook (in effect, an overwrite) and the data may not be continuous in a manner that would allow for formula solutions. With that many codes to lookup and the various other issues, it would be innefficient.

    Tony,

    If you can post a zipped folder with two sanitized workbooks, one source, one destination and layout what it is you need to do. This is not too bad, can have a solution fairly quickly for you.
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •