+ Reply to Thread
Results 1 to 6 of 6

Vlookup doesn't work on my userform

  1. #1
    Registered User
    Join Date
    12-29-2020
    Location
    Etten leur
    MS-Off Ver
    2016
    Posts
    19

    Vlookup doesn't work on my userform

    Hi All,

    I'm encountering the following problem:

    I have a userform with comboboxes and textboxes. What I try to do is when the input of CboTM1 (combobox1) changes, that imput needs to be searched with a Vlookup for the matching data and the output of the vlookup needs to be placed in TB1 (Textbox1).

    I have used Vlookup syntax before, but I think I overlooked something. Anyone can help to see if this Vlookup syntax is right?

    Please Login or Register  to view this content.
    Thanks for any help!

    BR Yuri

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Vlookup doesn't work on my userform

    What do you mean by "doesn't work"?

  3. #3
    Registered User
    Join Date
    12-29-2020
    Location
    Etten leur
    MS-Off Ver
    2016
    Posts
    19

    Re: Vlookup doesn't work on my userform

    Hi Dangelor,

    When I Run the code the error is : Unable to get the vlookup property of the worksheetfunction class.

    Please Login or Register  to view this content.
    That is the line wich is highlited

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Vlookup doesn't work on my userform

    That error usually means that it couldn't find a match in the 1st column of your data. If you're sure there is a match to be found. Try removing the DblModNr variable and just use the CboTM1.Value.

  5. #5
    Registered User
    Join Date
    12-29-2020
    Location
    Etten leur
    MS-Off Ver
    2016
    Posts
    19

    Re: Vlookup doesn't work on my userform

    Hi Dangelor,

    Thanks for your help. I overlooked that the column, in which the function needs to find a match, wasn't column A but column B.

    Thanks for your quick reply!

    BR Yuri

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Vlookup doesn't work on my userform

    Glad I could help!

+ 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. [SOLVED] Userform doesn't work property
    By Ghost12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2021, 02:06 AM
  2. [SOLVED] macro for userform with one textbox and two optionbutton doesn't work
    By MaartenRo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2020, 06:03 AM
  3. Excel database - Userform doesn't work out
    By Legatoalfuturo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2015, 03:25 PM
  4. SetFocus doesn't work properly on a Userform on ComboBoxes and TextBoxes
    By pimre in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-15-2013, 03:15 PM
  5. VLOOKUP sometimes doesn't work.
    By berdar in forum Excel General
    Replies: 3
    Last Post: 06-13-2013, 06:41 AM
  6. Writing information from userform to spreadsheet ? Code doesn't work
    By Fanciesmom in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-08-2013, 09:43 PM
  7. [SOLVED] Unload Userform doesn't work here - why?
    By rammieib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 09:55 AM

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