+ Reply to Thread
Results 1 to 3 of 3

Help with Error

  1. #1
    Registered User
    Join Date
    01-17-2005
    Posts
    37

    Help with Error

    Hey Guys, having an issue with the following code. This is essentially a combination code, the top part is a dropdown code that will let me display the description of a bunch of parts, but when you select one, it puts the part number into the cell.

    The second part is to then go and vlookup the data entered into the cell. Everything works fine when I select data from the dropdown in the cells, however, I need this code to not error out when I put something that the vloookup cannot find.

    The error I get is runtime error 1004, unable to get the vlookup property of the worksheetfunction class. it then highlights the following line..." desc = Application.WorksheetFunction.VLookup(Target, Application.Range("Stock"), 2, False) 'lookup column 2 in stock


    Please Login or Register  to view this content.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,320

    Re: Help with Error

    Perhaps:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    01-17-2005
    Posts
    37

    Re: Help with Error

    perfect! It had a type mismatch error that would popup, but I was able to suppress that by adding an error handling statement prior to the varmatch.

    Thanks!

+ 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