+ Reply to Thread
Results 1 to 4 of 4

Using vLookup from Userform

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Using vLookup from Userform

    Howdy y'all:

    I'm using a userForm to allow the user to select a driver and then I want to come up with the selected Driver's ID from a listing. From within the spreadsheet, the vLookup works fine but I keep getting Error 1004 when I try to run it from within the userForm. The driverName part is working fine. Any ideas?

    TIA.

    Bob

    Here's the code:
    Please Login or Register  to view this content.
    Last edited by bstubbs; 07-15-2009 at 11:21 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Using vLookup from Userform

    Hi

    Assuming that bal is a single cell defined name then try

    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Re: Using vLookup from Userform

    Thank you - worked like a champ!

  4. #4
    Registered User
    Join Date
    08-04-2011
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Using vLookup from Userform

    Hi I need help. I am a beginner in VBA. I have created my user form and now I want to program the OK button to fill the form. I have a combobox where user selects the line. I also have these lines on a column in a spread sheet. For instance I can have L01 like 3 times , then say L02 like 5 times.

    I have the list of all the lines as a combo. I want my userform to lookup the line selected by the user and then check if the offset (0,1) is empty and then fill out the information.

    I will be grateful if you can help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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