Results 1 to 2 of 2

UserForm, Vlookup Error when the form is done.

Threaded View

CRIMEDOG UserForm, Vlookup Error when... 11-11-2010, 04:52 PM
JBeaucaire Re: UserForm, Vlookup Error... 11-11-2010, 05:12 PM
  1. #1
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    UserForm, Vlookup Error when the form is done.

    I have almost completed my form (I even did some without help.
    It is working correctly, my userform pulls from the right lists, fills in necessary info and adds it to the right place in the form - But when I click the CommandButton it inserts everything in the form at the right place and immediately returns this error: Unable to get the Vlookup Property of the WorsheetFunction Class, and the Debug highlights the first row of my Vlookupsrow:
    Private Sub CboPart_Change()
    
    Me.TxtMkt = WorksheetFunction.VLookup(Me.CboPart, Sheets("Parts").Range(CboMainframe.Text), 2, False)
    Me.TxtPartNo = WorksheetFunction.VLookup(Me.CboPart, Sheets("Parts").Range(CboMainframe.Text), 3, False)
    I suspect that it is because I clear the ComboBox "Part" in my CommandButton code - but I need the box to clear.
    Should I make the Vlookups a Command Button Function?

    I am attaching file
    Attached Files Attached Files
    Last edited by CRIMEDOG; 11-11-2010 at 05:31 PM.

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