Using a look up table where data is in another excel file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Using a look up table where data is in another excel file

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    37

    Using a look up table where data is in another excel file

    Hi,

    I have an excel application to produce invoice and a packing sheet that I have built over the years. It also exports data to an access database from which sales figures can be obtained.

    The excell sheet uses a a lookup function to pick up values like title, price, index numbers etc from a Booklist.xls file. The link key is the product_id. So by inputting the prod_id value pulls up into the invoice line all the other required values.

    What I want to find out now is if I can use the Booklist.xls as a lookup table while it is closed so that in the incoice.xls file, clicking in the product_id cell brings up a table showing product_ids along with product titles from the booklist, and I can scrol down and pick the one I need. Instead of having to remember id product_id or having to open the booklist file to see it.

    Can this be done? How do I do it? If anyone has any ideas or has done something similar to it, I will be grateful for their wisdom and help.

    Thanks.

    Talāt

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    As with any file, your Booklist.xls would need to be opened in order for any information to be retrieved from it, or written back to it.

    Do you use UserForms at all or is everything run straight from the worksheet itself?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Aug 2009
    Posts
    37

    Using a look up table where data is in another excel file

    Thank you Hack.

    Everything is run from the invoice.xls sheet, with the use of macros and VBA code. I am not yet familiar by userforms. Not sure what you mean by those.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    A userform is a screen (window) that is created with an spreadsheet. It makes things, in many, but not all, cases easier for the user to understand what it going on, and to deal with spreadsheet related stuff.

    http://www.contextures.com/xlUserForm01.html
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,261
    You could use a Database Query. Under the 'Data' menu - Import External Data - New Database Query ...

    You essentually create an SQL query, based on your Booklist.xls file. It imports the data where you want. I would import the data onto it's own sheet, since it's just for lookup. From there you can lookup whatever you need. There is also an External Data Toolbar, which you can turn on. It has buttons for editing the Query, and refreshing the data, etc..

Similar Threads

  1. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 07:48 PM
  2. Attn: Daniel Reber
    By joe in forum Database
    Replies: 0
    Last Post: 04-04-2003, 05:25 PM
  3. Need UDF to write data to an excel file.
    By Ron Martinez in forum Database
    Replies: 0
    Last Post: 01-23-2003, 10:24 AM
  4. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM
  5. Ado using Data Link File Question
    By KENHOW in forum VB Classic
    Replies: 0
    Last Post: 07-13-2001, 04:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center