+ Reply to Thread
Results 1 to 2 of 2

Sheet9.Range("B2").Value VLOOKUP 1004 Error - Please Help!

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Birmingham
    MS-Off Ver
    2010
    Posts
    1

    Sheet9.Range("B2").Value VLOOKUP 1004 Error - Please Help!

    Hi All,

    I am trying to create a Vlookup below:

    Sheet9.Range("B2").Value = Application.VLookup(Me.cboEngineer, Sheet7.Range("Engineers_Full"), 8, False)

    For some reason it's not working and I get the error "Error 1004 (Method 'Range@ of object '_Worksheet' failed) in procedure cmdReady_Click"

    Could anyone please assist, i'm unsure as to why it's not working.

    Any help appreciated!

    Many Thanks,

    Froob!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Sheet9.Range("B2").Value VLOOKUP 1004 Error - Please Help!

    Can't tell by just looking at this one line of code (also please read our rules, we request code tags to preserve code formatting but don't bother for one line of code). My first guess would be that there is no named range Engineers_Full in Sheet7. Check the spelling of the name and make sure it is defined in Sheet7.

    If that doesn't help, the next step would be to attach your file. If you have private data you can remove the data first, I would just want to see the structure of the file and all of the code.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] If Not ActiveSheet.Range("A1").Value Like "apple" Then MsgBox "Error"
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2014, 02:16 PM
  2. [SOLVED] VB error:"1004" Calculate method of range class failed when selecting a cell with Array
    By vayana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2013, 06:48 PM
  3. Runtime Error 1004 "Active method of range class failed".
    By new2excel2012 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2012, 07:55 AM
  4. Run-time error 1004; "Unable to set the Hidden property of the Range Class"
    By danimal_time in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2012, 01:06 PM
  5. Excel VBA Runtime error 1004 "Select method of Range class failed"
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2012, 10:16 AM
  6. Runtime Error "1004" Autofill Method of range class failed
    By DonKarlos in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-15-2009, 07:44 PM
  7. 1004 Error w/ "Range"
    By scm24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2009, 05:16 PM

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