+ Reply to Thread
Results 1 to 5 of 5

VLookup() Run-Time Error '1004'

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    VLookup() Run-Time Error '1004'

    Getting Run-Time Error '1004'
    Unable to get the Vlookup property of the WorksheetFunction Class

    I am not sure why. In Debug mode the variables are all correct.

    Please Login or Register  to view this content.
    UNABLE TO ATTACH FILE AS THEY'RE HUGE.

  2. #2
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: VLookup() Run-Time Error '1004'

    this was previous code that worked.

    Please Login or Register  to view this content.

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

    Re: VLookup() Run-Time Error '1004'

    Hi

    worked for me. Are you sure your sheet names are correct, and that there is relevant data to find?

    rylo

  4. #4
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: VLookup() Run-Time Error '1004'

    Yes, the sheets are name correctly. That was the first thing I checked. Several times.
    There is a significant amount of data to find.

    You checked the code in the top section? The second set of code is what I had working previously. I am trying to get away from hvaing to read values from the spreadsheet as I am having the user enter data through InputBox.

  5. #5
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: VLookup() Run-Time Error '1004'

    I was able to resolve the problem by defining drg_code as a Variant instead of the String it was defined as.

+ 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