+ Reply to Thread
Results 1 to 6 of 6

problem accessing lookup list from sheet in another workbook

  1. #1
    Registered User
    Join Date
    03-25-2004
    Posts
    54

    problem accessing lookup list from sheet in another workbook

    I want to use the lookup function to find the Advisor corresponding to their AdvInits in the Time sheet in the Client List Search workbook while accessing another workbook. I tried the following code but it doesn't find the required value. What do I need to change?

    Please Login or Register  to view this content.
    Paul

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    VLOOKUP works across workbooks, even if the data book is closed. You do not need VBA
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-25-2004
    Posts
    54
    Roy

    I want to use this lookup in the middle of a macro. The complete code for that line is:

    Please Login or Register  to view this content.


    Paul

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I find the VBA .Find method more efficient. You would probably need to open the other workbook, but you can mask this by turning ScreenUpdaying off

  5. #5
    Registered User
    Join Date
    03-25-2004
    Posts
    54
    Thanks Roy, but I would still like to use lookup or vlookup but I don't know how to write correct this code within the lookup function. Can anyone help with this?

    Please Login or Register  to view this content.
    Paul

  6. #6
    Registered User
    Join Date
    03-25-2004
    Posts
    54
    Roy,

    I'm really sorry. I found my mistake - I had not referenced the result column at the end of the line to the Workbook and sheet. It should have been:

    Please Login or Register  to view this content.
    This now works ok.

    Paul

+ 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